安装PIL时出错
Getting an error when install PIL
我尝试安装 PIL 但出现错误。错误信息是:
Could not find a version that satisfies the requirement PIL (from versions: ) No matching distribution found for PIL.
我的软件版本是:
Python: 3.6.1
点:9.0.1
Django: 1.11.1
Pillow 和 PIL 不能在同一环境中共存。安装Pillow前,请先卸载PIL和Pillow。
然后用 pip install pillow
安装 Pillow
然后确保代码使用 from PIL import Image
而不是 import Image
。
(Pillow 的许多功能需要外部库。检查 list 并安装它们)
我尝试安装 PIL 但出现错误。错误信息是:
Could not find a version that satisfies the requirement PIL (from versions: ) No matching distribution found for PIL.
我的软件版本是:
Python: 3.6.1
点:9.0.1
Django: 1.11.1
Pillow 和 PIL 不能在同一环境中共存。安装Pillow前,请先卸载PIL和Pillow。
然后用 pip install pillow
然后确保代码使用 from PIL import Image
而不是 import Image
。
(Pillow 的许多功能需要外部库。检查 list 并安装它们)