【问题标题】:fail to install module PIL - error - Could not find a version that satisfies the requirement PI [duplicate]无法安装模块 PIL - 错误 - 找不到满足 PI 要求的版本 [重复]
【发布时间】:2022-01-19 15:43:27
【问题描述】:

尝试导入时 - from PIL import Image 出现此错误:

ERROR: Could not find a version that satisfies the requirement PIL (from versions: none)
ERROR: No matching distribution found for PIL

【问题讨论】:

  • from PIL import Image 永远不会犯这样的错误...也许pip install PIL 会...

标签: python python-imaging-library


【解决方案1】:

解决办法:

pip install Pillow

然后确保它可以工作:

from PIL import Image

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-06-04
    • 2018-02-18
    • 2021-02-21
    • 1970-01-01
    • 2019-12-22
    • 2021-05-29
    • 2019-10-17
    • 2019-11-03
    相关资源
    最近更新 更多