The following build error occurred when I build Python 2.7.11.
ERROR: The Python zlib extension was not compiled. Missing the zlib?
My Build environment is:
I went through the same issue and what did the trick for me was:
zlib
:$ brew reinstall zlib
pkg-config
can find zlib
:$ export LDFLAGS="-L/usr/local/opt/zlib/lib"
$ export CPPFLAGS="-I/usr/local/opt/zlib/include"
$ export PKG_CONFIG_PATH="/usr/local/opt/zlib/lib/pkgconfig"
You should check here: https://github.com/yyuu/pyenv/wiki/Common-build-problems. Try to reinstall your command line tools.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With