Bootstrap FreeKB - PIP - Display information about a package using the pip show command
PIP - Display information about a package using the pip show command

Updated:   |  PIP articles

The pip show command is used to return information about a package that has been installed in Python.

It's important to recognize that the pip command will be associated with a particular version of Python, which can seen by Location in the following output.

~]$ pip show requests
Name: requests
Version: 2.31.0
Summary: Python HTTP for Humans.
Home-page: https://requests.readthedocs.io
Author: Kenneth Reitz
Author-email: me@kennethreitz.org
License: Apache 2.0
Location: /usr/local/bin/python3.9.6/lib/python3.9/site-packages
Requires: certifi, charset-normalizer, idna, urllib3
Required-by: 

 

The following can be used if you want to return information about an installed package in a specific version of Python.

~]$ /usr/bin/python3.6 -m pip show requests
Name: requests
Version: 2.27.1
Summary: Python HTTP for Humans.
Home-page: https://requests.readthedocs.io
Author: Kenneth Reitz
Author-email: me@kennethreitz.org
License: Apache 2.0
Location: /usr/local/lib/python3.6/site-packages
Requires: certifi, charset-normalizer, idna, urllib3
Required-by: pywinrm, requests-ntlm

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter d1129e in the box below so that we can be sure you are a human.