Files
uv/docs/pip/inspection.md
T

43 lines
742 B
Markdown
Raw Normal View History

2024-06-26 12:28:42 -04:00
# Inspecting environments
## Listing installed packages
2025-06-11 02:15:38 +08:00
To list all the packages in the environment:
2024-06-26 12:28:42 -04:00
2024-08-03 08:41:33 -05:00
```console
$ uv pip list
2024-06-26 12:28:42 -04:00
```
To list the packages in a JSON format:
2024-08-03 08:41:33 -05:00
```console
$ uv pip list --format json
2024-06-26 12:28:42 -04:00
```
2025-06-11 02:15:38 +08:00
To list all the packages in the environment in a `requirements.txt` format:
2024-06-26 12:28:42 -04:00
2024-08-03 08:41:33 -05:00
```console
$ uv pip freeze
2024-06-26 12:28:42 -04:00
```
## Inspecting a package
To show information about an installed package, e.g., `numpy`:
2024-08-03 08:41:33 -05:00
```console
$ uv pip show numpy
2024-06-26 12:28:42 -04:00
```
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.
2024-06-26 12:28:42 -04:00
To check for conflicts or missing dependencies in the environment:
2024-08-03 08:41:33 -05:00
```console
$ uv pip check
2024-06-26 12:28:42 -04:00
```