Quick Way to Upgrade PIP in Anaconda

From time to time you may need to upgrade pip in Anaconda. In this short guide, I’ll show you a quick way to upgrade pip in Anaconda.

So how would you know that you need to upgrade to a newer version of pip in the first place?

In my case, when I opened the Anaconda Prompt in order to install a package using the PIP method, I got the following message:

Upgrade PIP in Anaconda

At that time, I was using the pip version of 19.2.3, but a newer version of pip was available.

In order to obtain the latest version of pip, I simply applied the following command in the Anaconda Prompt:

python -m pip install --upgrade pip

In the next section, I’m going to review the full steps to upgrade pip in Anaconda, just in case you were wondering how to perform the upgrade from scratch.

Steps to upgrade pip in Anaconda

Step 1: Open the Anaconda Prompt

The first thing that you’ll need to do is to open the Anaconda Prompt:

Anaconda Prompt

You would then see the following screen with your user name:

Upgrade PIP in Anaconda

Step 2: Type the command to upgrade pip in Anaconda

Type the following command (as you saw at the beginning of this guide), and then press Enter:

python -m pip install --upgrade pip

This is how the command would look like:

How to Upgrade Anaconda PIP

After few seconds or so, the latest version of pip would be installed on your machine:

Upgrade pip - Anaconda

Step 3 (optional): Check the version of pip

You can check the version of pip by opening the Anaconda Prompt, and then typing:

pip --version

This is how the command would look like (once you’re done, press Enter):

pip version

You’ll then see the version of pip. For example, this is the version of pip that I got when I typed the above syntax in the Anaconda Prompt:

pip Anaconda

That’s it, mission accomplished! You should now be able to enjoy the latest version of pip.

From time to time, you may also want to type the following command in the Anaconda Prompt to make sure that everything is up-to-date in Anaconda:

conda update pip