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
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
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.
LATEST POSTS
-
numpy.vstack() in Python
-
How to Print Without Newline in Python
-
Binary Search in C++
-
C++ strncmp() function with example
-
C++ do-while loop with Example
-
numpy.ones() in Python
-
Absolute Value abs() in Python
-
How to Import Excel File in Python Using Pandas
-
Insertion Sort in Java
-
Binary Search in C
-
Queue C++
-
Java Math abs() method with examples