HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

pip inspect — Inspect the Python environment and produce a report in JSON format. More information: <https://pip.p

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thepip inspectcommandpythonandclienvironmentinspect

Problem

How to use the pip inspect command: Inspect the Python environment and produce a report in JSON format. More information: <https://pip.pypa.io/en/stable/cli/pip_inspect/>.

Solution

pip inspect — Inspect the Python environment and produce a report in JSON format. More information: <https://pip.pypa.io/en/stable/cli/pip_inspect/>.

Inspect the current environment:
pip inspect


Inspect and save output to a file:
pip inspect > {{environment_report.json}}


Inspect only locally installed packages (not global):
pip inspect --local


Inspect only user-installed packages:
pip inspect --user


Inspect packages in a specific path:
pip inspect --path {{path/to/environment}}


Inspect with verbose output (Note: the -v flag can be repeated to increase verbosity):
pip inspect {{[-v|--verbose]}}

Code Snippets

Inspect the current environment

pip inspect

Inspect and save output to a file

pip inspect > {{environment_report.json}}

Inspect only locally installed packages (not global)

pip inspect --local

Inspect only user-installed packages

pip inspect --user

Inspect packages in a specific path

pip inspect --path {{path/to/environment}}

Context

tldr-pages: common/pip inspect

Revisions (0)

No revisions yet.