uv/docs/pip/inspection.md
Zanie Blue 1ee201da5a
Add structured documentation (#4426)
A ton of work remaining here, pushing so I can preview things rendered.

Here's the [latest rendered
documentation](https://astral-sh.github.io/uv/).
2024-06-26 11:28:42 -05:00

41 lines
723 B
Markdown

# Inspecting environments
## Listing installed packages
To list all of the packages in the environment:
```bash
uv pip list
```
To list the packages in a JSON format:
```bash
uv pip list --format json
```
To list all of the packages in the environment in a `requirements.txt` format:
```bash
uv pip freeze
```
## Inspecting a package
To show information about an installed package, e.g., `numpy`:
```bash
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:
```bash
uv pip check
```