From time to time you may need to upgrade PIP in Anaconda. In this short guide, you’ll see a quick way to upgrade PIP in Anaconda.
In order to upgrade PIP to the latest version, simply apply the following command in the Anaconda Prompt:
python -m pip install --upgrade pip
In the next section, you’ll see the full steps to upgrade PIP, 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. You’ll then see a screen with your user name:
Step 2: Type the command to upgrade pip
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:
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
This is how the command would look like (once you’re done, press Enter):
You’ll then see the version of PIP. For our example, the version of PIP that you’ll get is:
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