小编qui*_*ket的帖子

在Mac上安装Pillow时出现Zlib错误

我一直试图在我的Mac上安装模块Pillow(运行全新安装的El Capitan和python 3.5)已经有一段时间了.使用pip3安装Pillow,我收到一个错误,说找不到zlib,然后导致安装中止.我已经安装了Xcode,所以理论上已经安装了zlib,当我用brew pip安装它时仍然无法工作(所以我卸载了).它工作正常,直到它到达这里:

writing Pillow.egg-info/PKG-INFO
writing dependency_links to Pillow.egg-info/dependency_links.txt
writing top-level names to Pillow.egg-info/top_level.txt
warning: manifest_maker: standard file '-c' not found

reading manifest file 'Pillow.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'Pillow.egg-info/SOURCES.txt'
copying PIL/OleFileIO-README.md -> build/lib.macosx-10.6-intel-3.5/PIL
running build_ext
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/private/tmp/pip-build-1yfcb2pj/Pillow/setup.py", line 767, in <module>
    zip_safe=not debug_build(),
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/dist.py", line 974, in run_command
    cmd_obj.run() …
Run Code Online (Sandbox Code Playgroud)

python macos pillow

17
推荐指数
3
解决办法
3837
查看次数

标签 统计

macos ×1

pillow ×1

python ×1