我正在尝试安装 python 库并在下载 egg 文件后收到此错误。
Downloading http://pypi.python.org/packages/2.5/s/setuptools/setuptools-0.6c7-py2.5.egg
Traceback (most recent call last):
File "setup.py", line 10, in <module>
use_setuptools(min_version=min_version)
File "/Users/tylo/Downloads/Archives/simplejson-2.0.9/ez_setup.py", line 88, in use_setuptools
import setuptools; setuptools.bootstrap_install_from = egg
zipimport.ZipImportError: can't decompress data; zlib not available
我做了一些研究,发现 zlib 内置在 OS X 中。
这里可能出了什么问题?
最佳答案
运行 xcode-select --install
来修复 Xcode 命令行工具的安装。
关于python - Zlib 在 OS X 中不可用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2784687/