【问题标题】:Python : Can't install Pillow library on Pypy3.7 (7.3.1)Python:无法在 Pypy3.7 (7.3.1) 上安装 Pillow 库
【发布时间】: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。

【问题讨论】:

标签: python python-imaging-library pypy


【解决方案1】:

尝试更改 CPATH:

export CPATH=`xcrun --show-sdk-path`/usr/include

【讨论】:

    猜你喜欢
    • 2020-01-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-06-10
    • 2016-10-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多