How to Install Pip on Windows 10 for Python? (Step-by-Step)
While hopping to the installation steps for Pip, let me introduce its fundamentals for Python. Pip is technically a standard package manager for Python. Pip is an abbreviation for Preferred Installer Program and Pip Install Packages. This package contains the files, functionality, and features not included in the python standard library. In simple terms, the Pip package lets you install and manage third-party software efficiently and smoothly for Python in Windows. Basically, you’ll find the two latest versions of Python (Python 2 >= v2.7.9 or Python 3 >= v3.4). By default, these versions are compatible with Pip. Further, Pip worked in the virtual environments created by Virtualenv and Pyvenv.
In the old python versions, Pip packages are already installed. But in the latest Python versions, you need to install Pip on Windows 10 to run and execute your programs. This tutorial shows you how to install Pip on Windows 10 using a few simple steps. Let’s get started!
What is Python?
Python is a programming language that enables you to run software and plugins from an ample range of third-party sources on your server. Besides, Python is an open-source and cross-platform means you can efficiently run multiple operating systems.
Prerequisites to Install Pip on Windows
-Ensure your system run on the Windows platform and server
-You have Access to cmd(Command Prompt Window)
First, check if Pip is already Installed
Pip is mostly installed on the oldest and few latest Python versions with virtualenv and pyvenv virtual environments.
To check whether or not it is installed on your Windows 10. Oen the command prompt:
- Press Windows Key + X.
- Click Run.
- Type in cmd.exe and hit enter.
Next, type the following command on the Command Prompt:
If pip responds, it is installed on your Windows 10. If not, then it will display an error message on your windows screen.
Verify if Python is Installed
The easiest way to verify whether Python is installed on your Windows 10. You should open the command prompt.
- Once the CMD Windows opens
- Type “Python”
- Hit Enter Button
If Python is installed on your Windows, then you’ll see the below output:
|C:usersjdoe>pip –versionPython 3.8.0|
Python is not installed if you’ll see the message below on your screen instead of output.
|Python is not recognized as an internal or external command, operable program, or batch file.|
So, you need to install it first on your Windows if you want to install the Pip package. You can even install the python version, which contains pip in their standard library.
Also Read: How to install Python in Ubuntu – Step by Step Guide
Installing PIP on Windows 10
To install PIP, Windows 10, you must follow the below-outlined steps one by one:
Step 1 Install Pip on Windows using Get-Pip.Py
Before PIP installation, you should first download the get-pip.py file.
- Press Windows+R
- Type CMD
- Press Ctrl+ Shift+ Enter
Once the Administrator Command Prompt opens, type and run the following command to download the get-pip.py file:
|curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py|
Step 2 Install Pip on Windows
Once you check that Python is installed on your Windows, you can install Pip on it.
-First, download get-pip.py in a folder on your system.
-Open an Administrator Command Prompt.
-Navigate the directory where you download the get-pip.py installer.
After following these steps, run the below-mentioned command:
If you receive any message on your Window Screen “File not Found” error, it means pip is not yet installed. Therefore, you need to check the correct directory of the file, which needs to be navigated.
Note: You can even use the “dir” command to view the complete directory path or content. Remember, pip is already installed in the Python 2.7.9+ and Python 3.4+ versions. This means it contains both virtualenv and pyvenv virtual environments.
Step 3 Verify Pip Installation on Windows and Check the Version
Once the PIP installation process is done, you can cross-check whether or not it is successfully installed. For that, you should type the following command:
You will see a similar output for this command if Pip is installed on your Windows:
|C:usersjdoe>pip –versionPython 3.8.0|
If PIP has been installed on your computer, then your program quickly runs. Even you can see the software package location and a list of features and commands that you can employ to run your Python Programs on Windows 10.
Step 4 Add to Windows Environment Variables
If you want to run PIP from a variable location, you need to add this package to the Windows Environment Variables to avoid getting the “File Not Found” error.
To do this, follow the below-mentioned steps:
- Open Control Panel in your Computer
- Type System and Security Window in the Search bar
- Hit Enter
- Navigate to System Settings
- Select Advanced System Settings
- Tap on Environmental Variables
- In system Variable, double click on the Path Variable
- Select New
- Add Directory of the folder where you have installed the PIP package
- Click on the OK button to save the configurations.
Step 5 Configuration
- To configure the PIP file in your Windows, follow the code %HOME%\pip\pip.ini
- There is a legacy on the PIP configuration file per user.
- You will see the located file address be like %APPDATA%\pip\pip.ini.
- For these configurations files, you can even set a custom path using the environment variable PIP_CONFIG_FILE.
Upgrading the PIP version
Like other software and applications, it’s important to keep all your installations updated and ensure to use the latest versions. So, you can benefit from the maximum features and security measures. You should ensure to update the pip packages.
You must follow the below-mentioned commands to upgrade the Pip on Windows 10.
|python -m pip install –upgrade pip|
Old versions are automatically uninstalled when you run the command, and your pip is ready to work with current versions.
Downgrading PIP version
Downgrading is important when the latest version of Pip makes your system slow and perform undesirably.
To downgrade Pip to the old version to fix the compatibility issues, you need to type the command in cmd and run it.
You can follow the Syntax to downgrade Pip:
|python -m pip install pip==version_number|
Congratulations! You have successfully installed the Pip on Windows 10 for Python. Now you can easily manage the python packages to run and properly execute your programs.
Thank You! I hope this guide helps you to install Pip on Windows 10 to run python programs.