我目前正在尝试将 PIL 与 PyPy3 一起使用,但无论我如何尝试安装它,我都会收到错误消息。首先,我尝试使用 pypy3 pip install pillow
正常安装它,但出现了我需要 zlib 的错误。因此,在搜索解决方案一段时间后,我找到了 easy_install pillow
命令,它为大多数人解决了这个问题,但对我来说,它会导致同样的错误。我希望有人能帮助我。
错误:
File "C:\Users\name\AppData\Local\Temp\easy_install-uqrsyszz\Pillow-4.0.0\setup.py", line 791, in <module> setuptools.sandbox.UnpickleableException: RequiredDependencyException('\n\nThe headers or library files could not be found for zlib,\na required dependency when compiling Pillow from source.\n\nPlease see the install instructions at:\n http://pillow.readthedocs.io/en/latest/installation.html\n\n')
最佳答案
通过使用 pypy3 install pillow --global-option="build_ext"--global-option="--disable-zlib"--global-option="--disable-jpeg"
。 :)
关于python - 枕头安装 PyPy3 缺少 zlib,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64302065/