Hello People. This article discusses how to Install PIP for Python on Windows. PIP is a package management system to install and manage software packages written in Python. PIP stands for “preferred installer program” or “Pip Installs Packages.” It is a utility to manage PyPI package installations from the command line.
If you are using an older version of Python on Windows, you may need to install PIP. You can install PIP on Windows by downloading the installation package, opening the command line, and launching the installer.
Check if PIP is Already Installed in your PC
PIP is automatically installed with Python 2.7.9+ and Python 3.4+ and it comes with the virtualenv and pyvenv virtual environments. So check if PIP is already installed.
1. Launch the command prompt window:
- Press Windows Key + X.
- Click Run.
- Type in cmd.exe and hit enter.
Alternatively, type cmd in the Windows search bar and click the “Command Prompt” icon.
2. Type in the following command at the command prompt:
If PIP responds, then PIP is installed. Otherwise, you will see an error saying the program could not be found.
Follow the steps below to install PIP on Windows.
Download PIP get-pip.py
Before installing PIP, download the get-pip.py file.
1. Launch a command prompt if it isn’t already open. To do so, open the Windows search bar, type cmd and click on the icon.
2. Then, run the following command to download the get-pip.py file:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
Installing PIP on Windows
To install PIP type in the following:
If the file isn’t found, double-check the path to the folder where you saved the file. You can view the contents of your current directory using the following command:
dir command returns a full listing of the contents of a directory.
Once you’ve installed PIP, you can test whether the installation has been successful by typing the following:
If PIP has been installed, the program runs, and you should see the location of the software package and a list of commands you can use with
If you receive an error, repeat the installation process.
Add Pip to Windows Environment Variables
To run PIP from any location, you need to add it to Windows environment variables to avoid getting the “not on PATH” error. To do so, follow the steps outlined below:
- Open the System and Security window by searching for it in the Control Plane.
- Navigate to System settings.
- Then, select Advanced system settings.
- Open the Environment Variables and double-click on the Path variable in the System Variables.
- Next, select New and add the directory where you installed PIP.
- Click OK to save the changes.
Step 5: Configuration
In Windows, the PIP configuration file is
There is also a legacy per-user configuration file. The file is located at
You can set a custom path location for this config file using the environment variable
Upgrading PIP for Python on Windows
New versions of PIP are released occasionally. These versions may improve the functionality or be obligatory for security purposes.
To check the current version of PIP, run:
To upgrade PIP on Windows, enter the following in the command prompt:
python -m pip install --upgrade pip
This command uninstalls the old version of PIP and then installs the most current version of PIP.
Downgrade PIP Version
Downgrading may be necessary if a new version of PIP starts performing undesirably. To downgrade PIP to a prior version, specifying the version you want.
To downgrade PIP, use the syntax:
python -m pip install pip==version_number
For example, to downgrade to version 18.1, you should run:
python -m pip install pip==18.1
Hope this article on how to Install PIP for Python on Windows is useful to you. Please read What is Blockchain Technology