【发布时间】:2020-07-04 18:08:32
【问题描述】:
Pillow 似乎没有安装在 Pypy3.7 上。我在 Mac OS Catalina 10.15.4 上运行它。
Pip3 install Pillow
返回:
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/sg/g7xccd2d5ql7cv01qg_3j0440000gn/T/pip-install-6bmk1_j2/pillow/setup.py", line 918, in <module>
raise RequiredDependencyException(msg)
RequiredDependencyException:
The headers or library files could not be found for zlib,
a required dependency when compiling Pillow from source.
Please see the install instructions at:
https://pillow.readthedocs.io/en/latest/installation.html
这里有什么我遗漏的吗?我所看到的只是缺少的“Zlib”。我试过了
brew install Zlib
并重新安装 Xcode 以防万一。似乎没有任何效果。奇怪的是它适用于 python3 pip,但不适用于 pypy3 pip。
【问题讨论】:
-
CPython 使用二进制轮,不幸的是 Pillow 还没有提供二进制轮所以你必须从源代码编译。见github.com/python-pillow/Pillow/issues/…,也许过几天上传问题就会解决
标签: python python-imaging-library pypy