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()