无法安装模块 PIL - 错误 - 找不到满足 PI 要求的版本

Tal*_*man 4 python python-imaging-library

尝试导入时 -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
Run Code Online (Sandbox Code Playgroud)

Tal*_*man 6

解决方案:

pip install Pillow
Run Code Online (Sandbox Code Playgroud)

之后确保它有效:

from PIL import Image
Run Code Online (Sandbox Code Playgroud)