python3.4.2 安装Pillow

时间:2023-03-08 18:32:53
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()