zoukankan      html  css  js  c++  java
  • 安装 python PIL

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

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

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

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

    安装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'

    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

    https://www.cnblogs.com/chimeiwangliang/p/7127542.html

    https://blog.csdn.net/bryant_meng/article/details/81299874

    https://blog.csdn.net/bryant_meng/article/details/86185490

  • 相关阅读:
    第09组 Beta冲刺(2/5)
    第09组 Beta冲刺(3/5)
    第09组 Beta冲刺(4/5)
    第09组 Beta冲刺(5/5)
    第09组 Beta冲刺(1/5)
    SDN课程阅读作业(2)
    C语言I作业07
    C语言I博客作业05
    C语言I博客作业04
    C语言I博客作业03
  • 原文地址:https://www.cnblogs.com/emanlee/p/15422080.html
Copyright © 2011-2022 走看看