相关疑难解决方法(0)

ImportError:没有名为PIL的模块

我在shell中使用此命令来安装PIL:

easy_install PIL
Run Code Online (Sandbox Code Playgroud)

然后我跑去python输入:import PIL.但我得到这个错误:

Traceback (most recent call last):
  File "<console>", line 1, in <module>
ImportError: No module named PIL
Run Code Online (Sandbox Code Playgroud)

我从未遇到过这样的问题,您怎么看?

python easy-install python-imaging-library

171
推荐指数
18
解决办法
49万
查看次数

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

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

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

python python-imaging-library

2
推荐指数
1
解决办法
6686
查看次数