Want to learn how to upgrade PIP on Windows? This tutorial will show you how to do so step by step. We also include examples so you can understand better.
To upgrade Windows PIP, you must launch the Windows Command Prompt, then type or copy the following command. Keep in mind that this method would only function if you already added Python to Windows’ path.
How To Upgrade PIP
Step 1. Search for Command Prompt in Windows.
Step 2. When you launch the Command Prompt, the following screen will appear with your username. You might take into account running the Command Prompt in administrator mode to prevent permission concerns.
Step 3. Enter cd\ to make sure that your starting point only contains the drive’s name.
Step 4. The C:\> drive name will appear when you press Enter.
Step 5. Find your application path in Python, the location/folder where you initially installed Python.
A path for a Python application is shown here:
Step 6. Once you have located the Python program path, enter the command cd into the Command Prompt before your application path in Python.
Step 7. Hit Enter, and this will appear on the screen:
Step 8. Type or copy the following command, hit Enter, and PIP will be upgraded:
python -m pip install --upgrade pip
In the Command Prompt, the command would appear as follows:
C:\Users\Ron\AppData\Local\Programs\Python\Python39>python -m pip install --upgrade pip
You are done! The most recent PIP version is set up:
Successfully installed pip-21.1.1
How To Check The Current Version Of PIP
To verify the current PIP version, you must utilize the Scripts path instead of the application path.
Step 1. Enter cd\ to make sure that your starting point only contains the drive’s name.
Step 2. Find the location of your Python Scripts. You can find the folder in the application path.
The Scripts path in our case is:
Step 3. Enter cd before the Scripts path, then hit Enter:
Step 4. Finally, enter the command to verify PIP’s version as follows:
Step 5. Hit Enter, and here is the current version of PIP:
How To Downgrade PIP To A Previous Version
By following the instructions below, you can downgrade to a prior version of PIP with ease.
Step 1. Find the Python program path. Simply enter cd if you are already on the Python Scripts path. Hit Enter, and return to the application path:
Step 2. Suppose you wish to downgrade PIP to version 18.1
To do so, enter the command below and hit Enter:
python -m pip install pip==18.1
Step 3. You have successfully downgraded to your PIP’s prior version.
Successfully installed pip-18.1
Now you know how to upgrade PIP on Windows. We also explain how you can check your PIP version as well as how to downgrade it. Hopefully, you find this tutorial useful and easy to understand.Suppose a warning message appears when you try to upgrade PIP; check out our tips to solve this problem.