uv/docs/pip/inspection.md
Zanie Blue f971631adf
Wrap documentation at 100 characters (#5635)
Basically sick of dealing with mixed formatting here. Going with the
number at
7c08e61b73/.editorconfig (L20)
2024-07-30 22:17:58 +00:00

723 B

Inspecting environments

Listing installed packages

To list all of the packages in the environment:

uv pip list

To list the packages in a JSON format:

uv pip list --format json

To list all of the packages in the environment in a requirements.txt format:

uv pip freeze

Inspecting a package

To show information about an installed package, e.g., numpy:

uv pip show numpy

Multiple packages can be inspected at once.

Verifying an environment

It is possible to install packages with conflicting requirements into an environment if installed in multiple steps.

To check for conflicts or missing dependencies in the environment:

uv pip check