How to know the version of pip itself

Question:

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.

Asked By: doniyor

||

Answers:

You can do this:

pip -V

or:

pip --version
Answered By: Bowersbros

Just for completeness:

pip -V

pip --version

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

Answered By: boh717

On RHEL “pip -V” works :

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

For windows:

import pip

help(pip) 

shows the version at the end of the help file.

Answered By: gxpr

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 
Answered By: Manideep

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.

Answered By: Adarsh97

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
Answered By: ellie

For windows just type:

python -m pip --version
Answered By: absawd_4om

For Windows machine go to command prompt and type.

pip -V 
Answered By: Avijit Das

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)
`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

Answered By: Samuel Kamau

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

Answered By: Luk-StackOverflow

py -m pip –version

This worked for python version 3.9.7

Answered By: Zeus
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.