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

我的软件版本是:

PillowPIL 不能在同一环境中共存。安装Pillow前,请先卸载PIL和Pillow。

然后用 pip install pillow

安装 Pillow

然后确保代码使用 from PIL import Image 而不是 import Image

(Pillow 的许多功能需要外部库。检查 list 并安装它们)