mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +00:00

<!-- Thank you for contributing to uv! To help us out with reviewing, please consider the following: - Does this pull request include a summary of the change? (See below.) - Does this pull request include a descriptive title? - Does this pull request include references to any relevant issues? --> ## Summary I follow the advices from the IDE spell checker and grammar checker, fix some typos, and improve the docs.
42 lines
742 B
Markdown
42 lines
742 B
Markdown
# Inspecting environments
|
|
|
|
## Listing installed packages
|
|
|
|
To list all the packages in the environment:
|
|
|
|
```console
|
|
$ uv pip list
|
|
```
|
|
|
|
To list the packages in a JSON format:
|
|
|
|
```console
|
|
$ uv pip list --format json
|
|
```
|
|
|
|
To list all the packages in the environment in a `requirements.txt` format:
|
|
|
|
```console
|
|
$ uv pip freeze
|
|
```
|
|
|
|
## Inspecting a package
|
|
|
|
To show information about an installed package, e.g., `numpy`:
|
|
|
|
```console
|
|
$ 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:
|
|
|
|
```console
|
|
$ uv pip check
|
|
```
|