Cloud Service >> Knowledgebase >> General >> Learn to Install PIP on Windows
submit query

Cut Hosting Costs! Submit Query Today!

Learn to Install PIP on Windows

PIP, the Python Package­ Installer, is a key helpe­r for controlling Python packages. It lets you put in new one­s, boost old ones, and chuck out the unnee­ded, all from the Python Package Inde­x (PyPI) and more. This little guide will le­ad you in setting up PIP on a Windows rig.

Prerequisites

Before you begin, ensure that:

- Python is installed on your Windows system. PIP comes bundled with Python variations 3.Four and later, so if you have this kind of versions, PIP ought to already be installed.

- You have administrative privileges on the Windows machine.

Step 1: Verify Python Installation

1. Open the Command Prompt:

- Press Win + R, type cmd, and press Enter.

2. Check if Python is installed by typing:

python --version

OR

py --version

 

If Python is established, it will display the Python version wide variety. If no longer, you'll want to put in Python from the legitimate internet site: python.Org.

Step 2: Verify if PIP is Installed

1. In the Command Prompt, type:

pip --version

OR

python -m pip --version

 

If PIP is installed, the command will return the version number of PIP. If you see an error or no response, proceed to install PIP manually.

Step 3: Manually Install PIP

If PIP is not installed, follow these steps:

 

1. Download the get-pip.py script:

 

- Open your web browser and go to the following URL: https://bootstrap.pypa.io/get-pip.py.

- Right-click on the page and select "Save As" to download the get-pip.py file to a location on your computer (e.g., Desktop or Downloads).

 

2. Install PIP using the downloaded script

 

- Open Command Prompt as an administrator:

        a)Search for "cmd" in the Start menu, right-click on "Command Prompt," and select     "Run as administrator."

 

- Navigate to the directory where get-pip.py is saved. For example:

cd Desktop

- Run the script by typing:

python get-pip.py

- The script will install PIP along with its dependencies.

Step 4: Verify PIP Installation

1. To confirm that PIP is installed correctly, type:

pip --version

You should see a message indicating the PIP version and the Python installation path.

 

Step 5: Add PIP to the PATH Environment Variable

If the command pip is not recognized, you may need to add Python and PIP to your system’s PATH.

1. Open the System Properties:

- Right-click on "This PC" or "Computer" on the desktop and select "Properties."

- Click on "Advanced system settings" on the left side.

- In the System Properties window, click on the "Environment Variables" button.

Find the "Path" variable under "System variables," select it, and click "Edit."

2. Find the "Path" variable under "System variables," select it, and click "Edit."

3. Add the path to the Python and PIP executables:

- Click "New" and add the path to your Python installation (e.g., C:\Python39\).

- Also, add the Scripts directory (e.g., C:\Python39\Scripts\), where PIP is located.

4. Click "OK" to close all windows and apply the changes.

5. Close and reopen the Command Prompt to apply the changes. Then, type “pip --version” to verify the installation.

 

You have successfully installed PIP on your Windows server system. You can now use PIP to manage Python packages easily. For additional help, you can refer to the official PIP documentation or seek assistance from the Python community.










Cut Hosting Costs! Submit Query Today!

Grow With Us

Let’s talk about the future, and make it happen!