Add `build-essentials` note to build failures doc (#9641)

Addresses
https://github.com/astral-sh/uv/pull/9584#discussion_r1869950499
This commit is contained in:
Zanie Blue 2024-12-04 11:15:24 -06:00 committed by GitHub
parent a6f5180c27
commit d4d6da1558
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 2 deletions

View File

@ -140,14 +140,21 @@ If the build error mentions a missing command, for example, `gcc`:
Then, you'll need to install it with your system package manager, e.g., to resolve the error above:
```console
$ apt-get install gcc
$ apt install gcc
```
!!! note
!!! tip
When using the uv-managed Python versions, it's common to need `clang` installed instead of
`gcc`.
Many Linux distributions provide a package that includes all the common build dependencies.
You can address most build requirements by installing it, e.g., for Debian or Ubuntu:
```console
$ apt install build-essential
```
### Header or library is missing
If the build error mentions a missing header or library, e.g., a `.h` file, then you'll need to