使用 pip install 时报错“找不到满足 PIL 要求的版本”

Error " Could not find a version that satisfies the requirement PIL" when using pip install

尝试安装 PIL 时,我不断收到错误 "Could not find a version that satisfies the requirement PIL (from versions: ) No matching distribution found for PIL"。我已尝试按照 post ImportError: No module named PIL 中的建议卸载并重新安装 PIL,但在这种情况下,之前错误安装 PIL 不是问题。

尝试安装名为 Pillow 的包,它是一个 PIL Fork。您可以像使用 PIL 包一样使用它。