无法安装PIL

raf*_*man 2 python python-imaging-library

我无法安装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
Run Code Online (Sandbox Code Playgroud)

我试过按照这个问题的答案,但我得到了同样的错误.

Stack:Python 2.7,PIP,EC2 Ubuntu机器.

wim*_*wim 12

这个人咬了很多人,PIL已经成了pillow.

pip install pillow
Run Code Online (Sandbox Code Playgroud)

但导入名称未更改,因此它与包名称不同.也就是说,你继续使用:

from PIL import Image
Run Code Online (Sandbox Code Playgroud)