pip inspect

Added in version 22.2.


python -m pip inspect [options]
py -m pip inspect [options]


Inspect the content of a Python environment and produce a report in JSON format.

The format of the JSON output is described in pip inspect JSON output specification.



If in a virtualenv that has global access, do not list globally-installed packages.

(environment variable: PIP_LOCAL)


Only output packages installed in user-site.

(environment variable: PIP_USER)

--path <path>

Restrict to the specified installation path for listing packages (can be used multiple times).

(environment variable: PIP_PATH)