How to Upgrade PIP in Windows


How to Upgrade PIP in Windows

PIP is a package management tool for Python programming language. In this tutorial, you are going to learn how to upgrade PIP in Windows.

1. When to Upgrade PIP

If you see the following warning when using PIP then you should upgrade the PIP package management tool.

The above warning shows that your current PIP version is old and you should upgrade it.

2. Upgrade PIP

To upgrade PIP open Command Prompt by pressing Windows+R then typing cmd and clicking OK.

Now run the following command in the Command Prompt to upgrade PIP:

python -m pip install --upgrade pip
NOTE: The above command works only if you have added Python to the Windows Path.

After executing the above command successfully you have upgraded PIP. Confirm the upgrade and check the PIP version by using the following command

pip -V
You will see the following output:

If you are unable to upgrade PIP then you should follow the below instructions.

3. Upgrade PIP (If Python Path not added in Windows)

Now Type Command Prompt in Windows Search Box:

Then Right Click on Command Prompt and select Run as Administrator, You will see the following window:

Now Type cd\ command in the Command Prompt then hit Enter:

Then navigate to the Python installation directory as given below:

Path : C:\Users\CrazyGeeks\AppData\Local\Programs\Python\Python38-32

Navigate to the Python directory by using cd command and hit Enter as given below:

Upgrade the PIP version by using the following command:

python -m pip install --upgrade pip

After the successful upgrade you will see the following output:

Now navigate to Scripts directory using the following command:

cd Scripts


Check the PIP version and confirm the upgrade by using the following command:

pip -V

The output should be:

Here You have successfully upgraded PIP in the Windows system.

Conclusion

You have successfully learned How to Upgrade PIP in Windows. If you have any queries regarding this tutorial please don’t forget to comment below.