python3.4.2 安装Pillow

Python 3.x 安装Pillow
给Python安装Pillow非常简单,使用pip或easy_install只要一行代码即可。

在命令行使用PIP安装: pip install Pillow
或在命令行使用easy_install安装: easy_install Pillow
安装完成后,使用from PIL import Image就引用使用库了。

比如:

from PIL import Image
im = Image.open("bride.jpg")
im.rotate(45).show()
posted @ 2016-11-08 17:03  静悟生慧  阅读(2409)  评论(0编辑  收藏  举报