您的位置:首页 > 编程语言 > Python开发

python中尝试pip install PIL,出现错误的解决方法

2016-10-30 15:07 671 查看
错误提示:

could not find a version that satisfies the requirement PIL.(form versions:)No matching distribution found for PIL.

解决方法:
1. pip install Pillow

现在已经用pillow替代PIL了,

PIL最多支持的python版本是2.7,

而pillow 版本大于2.1支持python2.6,2.7以及3.x,

相应的原来的import image也由from PIL import Image代替,注意大小写。

2. PIL官方只有32位版本,在度娘直接找64位版本下载即可用!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  语言 python
相关文章推荐