Change the Version of PIP on Windows

The following command can be used to change the version of PIP on Windows:

python -m pip install pip==pip_version_needed

Note that if you already added Python to Windows Path, then simply open the Windows Command Prompt and type the above command. Otherwise, check the full steps below.

Steps to Change the Version of PIP on Windows

(1) First, type Command Prompt in the Windows search box.

(2) Next, open the Command Prompt, and you’ll see the following screen with your user name (to avoid any permission issues, you may consider to run the Command Prompt as an administrator):

C:\Users\Ron>

(3) Locate your Python application path, which is the folder where you originally installed Python.

You can find the Python application path by following these steps:

  • Type “Python” in the Windows Search Bar
  • Right-click on the Python App, and then select “Open file location
  • Right-click again on the Python shortcut, and then select “Open file location”

Here is an example of a Python application path:

C:\Users\Ron\AppData\Local\Programs\Python\Python311

(4) Once you retrieved the Python application path, type the following command in the Command Prompt:

cd“, followed by space, and then your Python application path

For our example:

C:\>cd C:\Users\Ron\AppData\Local\Programs\Python\Python311

(5) Press Enter, and you’ll see:

C:\Users\Ron\AppData\Local\Programs\Python\Python311>

(6) Use the following template to change the version of PIP to another version:

python -m pip install pip==pip_version_needed

For example, to change the PIP version to 23.0.1:

C:\Users\Ron\AppData\Local\Programs\Python\Python311>python -m pip install pip==23.0.1

(7) You’ll now see the PIP version that you specified:

Successfully installed pip-23.0.1

You may check the following guide for the steps to upgrade PIP on Windows.

Leave a Comment