There is a need of keeping upgrade python PIP every time because while installing new python packages, we have to make sure that the Python PIP has to be the latest version on your machine. Otherwise, you may get the below error:

ERROR: Could not find a version that satisfies the requirement webdriver (from versions: none)
ERROR: No matching distribution found for webdriver
WARNING: You are using pip version 20.0.2; however, version 20.1 is available.
You should consider upgrading via the pip install –upgrade pip command.

Here I am going to show to you how to upgrade Python PIP on the windows machine.

Upgrade Python PIP:

Open the windows command prompt and go to PIP installations directory.

For me it is : C:\Users\{user_name}\AppData\Local\Programs\Python\Python37\Scripts

Check for the pip version

pip --version
pip 20.0.2 from c:\users\user\appdata\local\programs\python\python37\lib\site-packages\pip (python 3.7)

Currently, I am on PIP 20.0.0, let’s upgrade PIP with the latest version.

Update PIP Version:

pip install –upgrade pip command is used to upgrade the pip. Go to the same pip installation directory and hit the below command.

C:\Users\user\AppData\Local\Programs\Python\Python37\Scripts>pip install --upgrade pip
Collecting pip
  Downloading pip-20.1-py2.py3-none-any.whl (1.5 MB)
     |████████████████████████████████| 1.5 MB 13 kB/s
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 20.0.2
    Uninstalling pip-20.0.2:
      Successfully uninstalled pip-20.0.2
Successfully installed pip-20.1

If everything went well you could see the above success message.

Verify:

C:\Users\user\AppData\Local\Programs\Python\Python37\Scripts>pip --version
pip 20.1

Now I have the latest PIP.

Done.

References:

Happy Learning 🙂