Using pip, is it possible to figure out which version of a package is currently installed?
I know about pip install XYZ --upgrade
but I am wondering if there is anything like pip info XYZ
. If not what would be the best way to tell what version I am currently using.
I just sent a pull request in pip with the enhancement Hugo Tavares said:
(specloud as example)
The easiest way is this:
and with --outdated as an extra argument, you will get the Current and Latest versions of the packages you are using :
So combining with AdamKG 's answer :
Check pip-tools too : https://github.com/nvie/pip-tools
On windows, you can issue command such as:
Output:
You can also install
yolk
and then runyolk -l
which also gives some nice output. Here is what I get for my little virtualenv:Pip 1.3 now also has a list command: