mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-15 23:03:53 -05:00
Another solution to zlib error on macOS
@@ -108,6 +108,11 @@ BUILD FAILED
|
|||||||
CFLAGS="-I$(xcrun --show-sdk-path)/usr/include" pyenv install -v 2.7.7
|
CFLAGS="-I$(xcrun --show-sdk-path)/usr/include" pyenv install -v 2.7.7
|
||||||
```
|
```
|
||||||
|
|
||||||
|
* If you installed zlib with Homebrew, you can set the CPPFLAGS environment variable:
|
||||||
|
```sh
|
||||||
|
CPPFLAGS="-I/usr/local/opt/zlib/include" pyenv install -v 3.7.0
|
||||||
|
```
|
||||||
|
|
||||||
* Alternatively, try reinstalling XCode command line tools for your OS (especially if you just upgraded your OS)
|
* Alternatively, try reinstalling XCode command line tools for your OS (especially if you just upgraded your OS)
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
|||||||
Reference in New Issue
Block a user