In this tutorial, you will learn how to upgrade PIP.

You will also learn how to check the current version of PIP, as well as downgrade to a previous version of PIP if you really need to.

TLDR; How to Upgrade PIP

The most obvious way, if python is mapped to the version you want pip to be upgraded on:

1
python -m pip install --upgrade pip

or if you are running python3 from the python3 command itself:

1
python3 -m pip install --upgrade pip

or if you are running python3 and want to upgrade pip3:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
python3 -m pip3 install --upgrade pip3
```<figure class="wp-block-image size-large">

<img decoding="async" loading="lazy" width="845" height="549" src="https://ao.gl/wp-content/uploads/2020/08/image-3.png" alt="" class="wp-image-5163" srcset="https://blog.ataiva.com/wp-content/uploads/2020/08/image-3.png 845w, https://blog.ataiva.com/wp-content/uploads/2020/08/image-3-300x195.png 300w, https://blog.ataiva.com/wp-content/uploads/2020/08/image-3-768x499.png 768w" sizes="(max-width: 845px) 100vw, 845px" /> </figure> 

## How to upgrade PIP on Windows

Upgrading PIP on Windows is as simple as doing the same on Linux or Mac, just instead of opening the `Terminal`, you would rather open the `Command Prompt` to issue your commands.

Once you have opened the `Command Prompt`, type:

python.exe -m pip install –upgrade pip

1
2
3
4
5
6

Python will now upgrade PIP to the latest version

## How to check the version of PIP

To check the version of PIP that you are running, you can open either the CommandPrompt (Windows) or the Terminal (Linux/Mac) and type:

pip –version

1
2

If you are running `pip3` then you can type:

pip3 –version

1
2
3
4

## How to download PIP to a previous version

Sometimes you may want to downgrade PIP to a previous version, this is easy to do with a single command:

python -m pip install pip==18.1

1
2

Once again, if you are running `python3` binary, you would do the following instead:

python3 -m pip install pip==18.1

1
2

..and if you were trying to do this for `pip3`, then you could do it as follows:

python3 -m pip3 install pip3==18.1