1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-08 11:33:49 -05:00

Update the Fedora-related descriptions and change tk-devel to tk8-devel.

JoeYang1412
2025-10-25 13:47:46 +08:00
parent 07c3f2ec0e
commit 7c6cd8bb6e

@@ -88,6 +88,15 @@ so we still recommend building against Tcl/Tk 8 as of that release.
```sh
dnf install make gcc patch zlib-devel bzip2 bzip2-devel readline-devel sqlite sqlite-devel openssl-devel tk-devel libffi-devel xz-devel libuuid-devel gdbm-libs libnsl2
```
- Fedora 42 and above (Tcl/Tk 9 by default)
Fedora 42 and later ship with **Tcl/Tk 9.0** as the default. Some Python versions (for example, 3.10 and 3.11) cannot build the `_tkinter` module against Tk 9.0. To ensure compatibility, install the **Tcl/Tk 8.6 compatibility packages** instead:
```bash
dnf install make gcc patch zlib-devel bzip2 bzip2-devel readline-devel sqlite sqlite-devel openssl-devel tk8-devel libffi-devel xz-devel libuuid-devel gdbm-libs libnsl2
```
> **Note:** Package names for the 8.6 compatibility libraries are `tk8-devel` on Fedora 42+.
Additionally, you should install `zstd-devel` if you are building Python 3.14 or newer but note that Python requires zstd 1.4.5 or newer, which may not be available in the default package repositories.