首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法安装PIL

无法安装PIL
EN

Stack Overflow用户
提问于 2016-05-19 06:53:59
回答 1查看 11.3K关注 0票数 10

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

代码语言:javascript
复制
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,EC2 Ubuntu机。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-05-19 07:22:11

这一点咬了很多人,PIL变成了pillow

代码语言:javascript
复制
pip install pillow

但是导入名称没有改变,所以它与现在的包名称不同。也就是说,您可以继续使用:

代码语言:javascript
复制
from PIL import Image
票数 21
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37311359

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档