snippetbashTip
pip inspect — Inspect the Python environment and produce a report in JSON format. More information: <https://pip.p
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 inspectInspect and save output to a file:
pip inspect > {{environment_report.json}}Inspect only locally installed packages (not global):
pip inspect --localInspect only user-installed packages:
pip inspect --userInspect 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 inspectInspect and save output to a file
pip inspect > {{environment_report.json}}Inspect only locally installed packages (not global)
pip inspect --localInspect only user-installed packages
pip inspect --userInspect packages in a specific path
pip inspect --path {{path/to/environment}}Context
tldr-pages: common/pip inspect
Revisions (0)
No revisions yet.