The first thing you’ll probably want to do is check which pip version you have in the first place. You can then compare that to the latest published version to see whether you should upgrade. The command for this is thankfully very simple:
pip --version
How to upgrade pip the latest version
Upgrading pip is again very easy process. Just run the following:
python -m pip install --upgrade pip
How to upgrade pip to specfic version
Just run the following:
python -m pip install pip==your.version.number
How to downgrade pip
If you do find that you need to rollback your pip version due to bugs, incompatibilities, or any other reason, find the version number you want to roll back to and then run this command: