[解决]OS X 下 Python 导入 PIL 中的 ImageGrab 错误

Posted 藥師的琉璃盞

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[解决]OS X 下 Python 导入 PIL 中的 ImageGrab 错误相关的知识,希望对你有一定的参考价值。

本来官方的说法是:The current version works on Windows only.

而且 PIL 已经好多年没更新了

怎么办?

当然是用 Pillow。已经在 3.0.0 版本支持 Windows 和 OS X。

The current version works on OS X and Windows only. OS X support was added in 3.0.0.

pip install Pillow  或者 pip install --upgrade Pillow 就可以了

以上是关于[解决]OS X 下 Python 导入 PIL 中的 ImageGrab 错误的主要内容,如果未能解决你的问题,请参考以下文章