How to find which version of package is installed with pip

0 votes
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
Dec 4, 2020 in Python by anonymous
• 10,420 points
64 views

1 answer to this question.

0 votes

As of pip 1.3, there is a pip show command.

$ pip show Jinja2
---
Name: Jinja2
Version: 2.7.3
Location: /path/to/virtualenv/lib/python2.7/site-packages
Requires: markupsafe

In older versions, pip freeze and grep should do the job nicely.

$ pip freeze | grep Jinja2
Jinja2==2.7.3
answered Dec 4, 2020 by Gitika
• 65,870 points

Related Questions In Python

0 votes
1 answer

How to find packages installed using pip?

Yes, you can find the packages installed ...READ MORE

answered Jan 29, 2019 in Python by Omkar
• 69,090 points
120 views
0 votes
1 answer

How to find if setuptools is installed in python?

You can use python interpreter to check ...READ MORE

answered Jan 29, 2019 in Python by Omkar
• 69,090 points
267 views
0 votes
1 answer
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 1,858 views
0 votes
0 answers
+4 votes
6 answers

Lowercase in Python

You can simply the built-in function in ...READ MORE

answered Apr 11, 2018 in Python by hemant
• 5,810 points
1,431 views
0 votes
1 answer

How to uninstall a package installed with pip install --user?

Having tested this using Python 3.5 and ...READ MORE

answered Dec 4, 2020 in Python by Gitika
• 65,870 points
376 views
0 votes
1 answer