Line
IT Knowledgebase
< All Topics
Print

How to Install PIP on Windows

PIP is a package management system that installs and manages software packages written in Python.
It stands for “Preferred Installer Program” or “Pip Installs Packages.”
The utility manages PyPI package installations from the command line.


Step 1: This method uses cURL to download the installation file and additional configuration steps post-installation.
Follow the steps below to install PIP using this method. PIP can be Download from get-pip.py. Before installing PIP,
download the get-pip.py file. Run the following cURL command in the command prompt:



Step 2: Installing PIP on WindowsTo install PIP, run the following Python command:
Note: the location from the output warning, which will be required to add PIP to the Path environment variable.


Step 3:
Verify Installation To test whether the installation was successful, type the following command:

If PIP is installed, the program runs without any errors. The output shows the software’s location and a list of pip commands.


Step 4: Add PIP to Path
To run PIP from any location and as a standalone command, add it to  Windows environment variables.
Doing so resolves the “not on Path” error. To add PIP to Path, follow these steps:

Step 4.1: Open the Start menu, search for Environment Variables, and press Enter.
    


Step 4.2: Click the Environment Variables button.



Step 4.3: Double-click the Path variable to edit it.



Step 4.4: Select New and add the directory where PIP is installed. and then Click OK to save the changes.



Step 4.5: Open a new command prompt session and run the following command to test the changes.

If the command does not work, try using pip3 instead of pip. Alternatively,
add the directory where Python is installed to Path and repeat the process.


Step 5: Configuration PIP. In Windows, the PIP configuration file can be found in several locations. To view the current configuration and list all possible file locations, use the following command:

The command shows the possible global, user, and site locations for the pip.ini configuration file.
Below the locations are the current configuration settings, if any.


Credit : https://phoenixnap.com/kb/install-pip-windows

Messenger