When I try to put python in HomeBrew, there is no zlib error
$ brew install python
(Omitted)
==> /usr/local/Cellar/python/2.7.3/bin/python -s setup.py --no-user-cfg install
File "/private/tmp/__UNKNOWN__-BJ7g/distribute-0.6.34/setuptools/command/bdist_egg.py", line 540, in make_zipfile
z = zipfile.ZipFile(zip_filename, mode, compression=compression)
File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/zipfile.py", line 681, in __init__
"Compression requires the (missing) zlib module"
RuntimeError: Compression requires the (missing) zlib module
I installed the XCode tool and it was installed successfully
xcode-select --install
Reference URL http://qiita.com/soramugi/items/aff9234b08ff1c3b4f46
Recommended Posts