无法安装 PIL

Can't install PIL

我无法安装 PIL。当我 运行 pip install PIL 我得到:

Downloading/unpacking PIL
  Could not find any downloads that satisfy the requirement PIL
Cleaning up...
No distributions at all found for PIL
Storing debug log for failure in /tmp/tmpWJojCu

我尝试按照 this 问题的答案进行操作,但我遇到了同样的错误。

堆栈:Python2.7、PIP、EC2Ubuntu 机器。

这个咬了很多人,PIL变成了pillow

pip install pillow

但是导入名称没有改变,所以和现在的包名不同。即您继续使用:

from PIL import Image