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

zlib not needed for modern versions

native-api
2025-08-28 10:43:13 +03:00
parent dfde4234a0
commit 5b76cd5121

@@ -25,19 +25,21 @@ distros like Alma/Rocky Linux 8 and Ubuntu 20.04. See [PEP
(`xcode-select --install`) and [Homebrew](http://brew.sh/). Then:
```sh
brew install openssl readline sqlite3 xz zlib tcl-tk@8 libb2 zstd
brew install openssl readline sqlite3 xz tcl-tk@8 libb2 zstd
```
As an alternative to Homebrew, you can use dependencies from [MacPorts](https://www.macports.org/install.php):
```sh
sudo port install pkgconfig openssl zlib xz gdbm tcl tk +quartz sqlite3 sqlite3-tcl zstd
sudo port install pkgconfig openssl xz gdbm tcl tk +quartz sqlite3 sqlite3-tcl zstd
```
* **Older MacOS releases**
For older MacOS releases, `Homebrew` might not be available so install `pyenv` [in one of the other ways](https://github.com/pyenv/pyenv/blob/master/README.md#a-getting-pyenv) and use MacPorts (see above) for dependencies.
You can install `zlib` with Homebrew or MacPorts to use it rather than the one bundled with MacOS, or if your XCode is old enough to not include it.
`xcode-select --install` might not be available on older macOS's so use [this script](https://gist.github.com/rtrouton/f92f263414aaeb946e54) instead or [this page](https://xcodereleases.com/) as well as directly from Apple downloads:
https://developer.apple.com/download/more/