(Python问题一)python 安装PIL (Python Imaging Library )

python 安装PIL (Python Imaging Library ) 提示

Could not find a version that satisfies the requirement PIL (from versions: )
No matching distribution found for PIL

开始用

sudo pip install PIL 
总是提示上述错误


用命令

sudo pip search PIL

出现  Pillow (3.2.0)         Python Imaging Library (Fork)

名字变了 。。。。。。


下面正确方式

尝试用命令安装

sudo pip install Pillow

通过 命令引入   from PIL import Image( Pillow由PIL而来,所以该导入该库使用import PIL) 正确

你可能感兴趣的:(python)