Search code examples
pythonzlibosx-elcapitan

The Python zlib extension was not compiled on Mac OS X 10.11.1


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:

  • Mac OS X 10.11.1
  • Python 2.7.11

Solution

  • You should check here: https://github.com/yyuu/pyenv/wiki/Common-build-problems. Try to reinstall your command line tools.