Quick Way to Upgrade PIP in Anaconda

From time to time you may want to upgrade pip in Anaconda. In this short post, I’ll show you a quick way to accomplish this task.

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

Under 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.0.2, 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 post), and then press Enter:

 

python -m pip install --upgrade pip

 

How to Upgrade Anaconda PIP

 

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

 

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

 

Upgrade PIP in Anaconda

 

For example, this is the version of pip that I got when typing the above syntax in the Anaconda Prompt:

 

pip version 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 everything is up-to-date in Anaconda:

 

conda update pip

 

Finally, a useful resource about Anaconda is the User guide — Conda documentation, which contains good information about the installation and configuration of Anaconda.