python - 如果发生这种情况,我该如何安装 PIL?

标签 python

sudo pip install PIL
Downloading/unpacking PIL
  Could not find any downloads that satisfy the requirement PIL
  Some externally hosted files were ignored (use --allow-external PIL to allow).
Cleaning up...
No distributions at all found for PIL
Storing debug log for failure in /Users/x/Library/Logs/pip.log

最佳答案

使用枕头代替 PIL。 pillow 是 PIL 的分支。

有关 Mac OS X 中的安装说明,请使用以下链接,

https://pillow.readthedocs.org/en/latest/installation.html#mac-os-x-installation

关于python - 如果发生这种情况,我该如何安装 PIL?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21329021/

相关文章:

Python Pandas : Boolean indexing on multiple columns

python - python2上的pip安装失败

python - 从 netCDF 中提取位置和跨时间范围的值

python - **函数中的参数引发 TypeError "takes 0 positional arguments"[python]

python - 如何在Python爬虫中访问多页面表单的发布数据

python - 基于另一列复制行

python - 在 Django 2 Python 3 中生成临时 URL

python - 从 Python 2.7 转换到 3.4 时出现 jsonify 问题

python - 我的 PaintEvent 方法没有使用 PySide 绘制任何内容

python - 在 python 中旋转数据框