๐Ÿ“ฆ astral-sh / docs

๐Ÿ“„ index.md ยท 47 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47# [Inspecting environments](#inspecting-environments)

## [Listing installed packages](#listing-installed-packages)

To list all the packages in the environment:

```
$ uv pip list

```

To list the packages in a JSON format:

```
$ uv pip list --format json

```

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

```
$ uv pip freeze

```

## [Inspecting a package](#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](#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

```