python - 枕头安装 PyPy3 缺少 zlib

标签 python python-3.x python-imaging-library pypy

我目前正在尝试将 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/

相关文章:

python - 如何在 Python 中使用 x DP 将分数写为十进制?

mysql - 在 Hadoop 中使用 apache Airflow 配置 MySql 时遇到问题

python-3.x - 自动分类模型选择

Python:元组集的并集

python - 使用 Pillow ImageCMS 将 icc 颜色配置文件插入图像中

python - 在 Python 脚本中存储数据 block 的 Pythonic 方式是什么?

python - 你能在 Django 模板中声明多个变量吗?

Python:反转具有透明背景的图像(PIL,Gimp,...)

python - 当使用 PIL 中的 Image.new(...) 导入图像时,大小从什么开始?

python - 根据模板使用空格分割字符串