[Python]Windows系统下安装Pillow模块

Posted 闲来无事不从容

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[Python]Windows系统下安装Pillow模块相关的知识,希望对你有一定的参考价值。

Pillow模块提供了丰富的图像处理功能,并且很多其它模块使用到该模块。

  1. 安装Pillow模块。使用以下命令:

pip install Pillow

2. 使用举例

#导入Image

from PIL import Image

 

#打开图片

img = Image.open("d:\qr.png")

 

#显示图片

img.show()

  3. 详细教程请参考:https://pillow.readthedocs.io/en/5.1.x/handbook/index.html

 

以上是关于[Python]Windows系统下安装Pillow模块的主要内容,如果未能解决你的问题,请参考以下文章

python技能树Windows/Linux系统下python的安装与环境配置

windows系统下Python环境的搭建

Windows系统下如何安装Python以及对应pygame

[Python]Windows系统下安装Pillow模块

Windows系统下安装Python的SSH模块教程

windows下如何安装pip