您好,欢迎访问一九零五行业门户网

python3怎么安装pillow模块

pillow是pil的一个派生分支,但如今已经发展成为比pil本身更具活力的图像处理库。目前最新版本是3.0.0。
pillow的github主页:https://github.com/python-pillow/pillow
pillow的文档(对应版本v3.0.0):https://pillow.readthedocs.org/en/latest/handbook/index.html
pillow的文档中文翻译(对应版本v2.4.0):http://pillow-cn.readthedocs.org/en/latest/
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 imageim = image.open("bride.jpg")im.rotate(45).show()
以上就是python3怎么安装pillow模块的详细内容。
其它类似信息

推荐信息