Python 3.x 安装Pillow
给Python安装Pillow非常简单,使用pip或easy_install只要一行代码即可。
在命令行使用PIP安装:pip install Pillow
或在命令行使用easy_install安装:easy_install Pillow
python3 怎么安装 PIL

安装完成后,使用from PIL import Image就引用使用库了。

比如:from PIL import Image
         im = Image.open("bride.jpg")
         im.rotate(45).show()

注:
PIL(Python Imaging Library)是Python一个强大方便的图像处理库,名气也比较大。不过只支持到Python 2.7。

相关文章: