Python 3.4 安装Pillow(PIL)

发布时间:2015年11月07日 // 分类:代码 // 2 条评论

关于Pillow与PIL

PIL(Python Imaging Library)是Python一个强大方便的图像处理库,名气也比较大。不过只支持到Python 2.7。

Pillow是PIL的一个派生分支,但如今已经发展成为比PIL本身更具活力的图像处理库。目前最新版本是3.0.0。

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

简单,方便。

本文固定链接
https://www.ywlib.com/archives/37.html

标签
python, pil, pillow

已有 2 条 关于 " Python 3.4 安装Pillow(PIL) "的评论.

  1. 谢谢

    答主我爱死你了,解决了困扰我半天的问题,谢谢

  2. [...]Python 3.4 安装Pillow(PIL)[...]

添加新评论 »

分类
随机文章
最新文章
最近回复
  • 1: 代码都写错了,serialize 写了两次
  • ANTONIO: 谢谢你, 终于有声音了!!!
  • andyw: newbee的版主!好用
  • amos: 真管用!!!感谢版主
  • Kent: 优秀!
  • Kent: 关于页面里有我的邮箱
  • kincae: 你好,找了很多文档就你的这篇解决了我的问题,可以留个联系方式吗
  • xuesheng: phpredis版本的问题。 phpredis 5.3.0 fixed. * Use long...
  • 夏目贵志: 感谢解决困惑我2小时的问题!!!
  • Kent: 啊。。好的。。谢谢你