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 Image im = Image.open("bride.jpg") im.rotate(45).show()
以上就是python3怎样装置pillow模块的具体内容,更多请存眷资源魔其它相干文章!
标签: python教程 python编程 python使用问题 pillow
版权声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。
抱歉,评论功能暂时关闭!