Explore Courses Blog Tutorials Interview Questions
0 votes
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
Welcome to Intellipaat Community. Get your technical queries answered by top developers!

29.3k questions

30.6k answers


104k users

Browse Categories