Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (50.2k points)

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.

1 Answer

0 votes
by (106k points)
  • Yes Python has a command that shows us the information about the version of pip, which is installed in our system and that command is pip show.

  • So once you write pip show package name it will show you the name of the package that you have written with the command, Version of that package installed, the location of the package.

 $ pip show Python

 Name:  Python

 Version: 3.7

 Location: /path/to/virtualenv/lib/python3.7/site-packages

Related questions

0 votes
1 answer
+3 votes
2 answers
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...