In order to upgrade PIP to the latest version, simply run the following command in the Anaconda Prompt:
python -m pip install --upgrade pip
Steps to Upgrade PIP in Anaconda
Step 1: Open the Anaconda Prompt
First, open the Anaconda Prompt. You’ll then see a screen with your user name:
(base) C:\Users\Ron>
Step 2: Type the command to upgrade PIP
Type the following command to upgrade PIP, and then press Enter:
python -m pip install --upgrade pip
After few seconds or so, the latest version of PIP would be installed on your machine:
Successfully installed pip-23.2.1
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
Once you’re done, press Enter, and you’ll see the version of PIP:
pip 23.2.1