How to know the version of pip itself

PythonPip

Python Problem Overview


Which shell command gives me the actual version of pip I am using?

pip gives with pip show all version of modules that are installed but excludes itself.

Python Solutions


Solution 1 - Python

You can do this:

pip -V

or:

pip --version

Solution 2 - Python

Just for completeness:

pip -V

pip --version

pip list and inside the list you'll find also pip with its version.

Solution 3 - Python

For windows just type:

python -m pip --version

Solution 4 - Python

For windows:

import pip

help(pip) 

shows the version at the end of the help file.

Solution 5 - Python

Any of the following should work

pip --version
# pip 19.0.3 from /usr/local/lib/python2.7/site-packages/pip (python 2.7)

or

pip -V       
# pip 19.0.3 from /usr/local/lib/python2.7/site-packages/pip (python 2.7)

or

pip3 -V      
# pip 19.0.3 from /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip (python 3.7)

Solution 6 - Python

Many people use both 2.X and 3.X python. You can use pip -V to show default pip version.
If you have many python versions, and you want to install some packages through different pip, I advise this way:

sudo python2.X -m pip install some-package==0.16

Solution 7 - Python

On RHEL "pip -V" works :

$ pip -V
pip 6.1.1 from /usr/lib/python2.6/site-packages (python 2.6)

Solution 8 - Python

check two things

pip2 --version   

and

pip3 --version

because the default pip may be anyone of this so it is always better to check both.

Solution 9 - Python

Start Python and type import pip pip.__version__ which works for all python packages.

Solution 10 - Python

First, open a command prompt After type a bellow commands.

check a version itself Easily :

Form Windows:

> pip installation :

pip install pip

> pip Version check:

pip --version 

Solution 11 - Python

For Windows machine go to command prompt and type.

pip -V 

Solution 12 - Python

`pip -v` or `pip --v` 

However note, if you are using macos catelina which has the zsh (z shell) it might give you a whole bunch of things, so the best option is to try install the version or start as -- pip3

Solution 13 - Python

py -m pip --version

This worked for python version 3.9.7

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestiondoniyorView Question on Stackoverflow
Solution 1 - PythonBowersbrosView Answer on Stackoverflow
Solution 2 - Pythonboh717View Answer on Stackoverflow
Solution 3 - Pythonabsawd_4omView Answer on Stackoverflow
Solution 4 - PythongxprView Answer on Stackoverflow
Solution 5 - PythonAbinet KenoreGetachewView Answer on Stackoverflow
Solution 6 - PythonellieView Answer on Stackoverflow
Solution 7 - PythonDon_ManjView Answer on Stackoverflow
Solution 8 - PythonAdarsh97View Answer on Stackoverflow
Solution 9 - PythonLuk-StackOverflowView Answer on Stackoverflow
Solution 10 - PythonManideepView Answer on Stackoverflow
Solution 11 - PythonAvijit DasView Answer on Stackoverflow
Solution 12 - PythonSamuel KamauView Answer on Stackoverflow
Solution 13 - PythonZeusView Answer on Stackoverflow