安装 python PIL (pillow)
  TnD0WQEygW8e 2023年11月02日 23 0

PIL是Python平台事实上的图像处理标准库,支持多种格式,并提供强大的图形与图像处理功能。

PIL 模块全称为 Python Imaging Library,是python中一个免费的图像处理模块。

 

PIL(Python Imaging Library)是Python中一个强大的图像处理库,但目前其只支持到Python2.7

pillow是PIL的一个分支,虽是分支但是其与PIL同样也具有很强的图像处理库。

 

安装 python PIL (pillow)_Image

 

 

安装PIL

1.确认你的版本

2.如果是Python 2.7 直接 pip install PIL

3. 如果是Python 3.7 用 pip install pillow

4.打开pycharm导入模块尝试是否标红

 

>>> from pil import Image
>>> from PIL import Image
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'PIL'
>>>

 

>>> import pil
>>> import PIL
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'PIL'

 

 

安装 python PIL (pillow)_Python_02

 

 

pillow官网:

https://python-pillow.org/

https://pypi.org/project/PIL/

About pillow

Goals

The fork author’s goal is to foster and support active development of PIL through:

License

Like PIL, Pillow is licensed under the open source HPND License

Why a fork?

PIL is not setuptools compatible. Please see this Image-SIG post for a more detailed explanation. Also, PIL’s current bi-yearly (or greater) release schedule is too infrequent to accommodate the large number and frequency of issues reported.

What about PIL?

Note

Prior to Pillow 2.0.0, very few image code changes were made. Pillow 2.0.0 added Python 3 support and includes many bug fixes from many contributors.

As more time passes since the last PIL release (1.1.7 in 2009), the likelihood of a new PIL release decreases. However, we’ve yet to hear an official “PIL is dead” announcement.

 

 

REF

https://www.jianshu.com/p/e8d058767dfa



【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月08日 0

暂无评论

推荐阅读