尝试安装 PIL 时出错

我尝试安装 PIL,但得到错误,我该怎么办?

$ Command
Result
------------
$ pip install PIL


Collecting PIL
Could not find a version that satisfies the requirement PIL (from versions: )
No matching distribution found for PIL
--------------------------------------------------------------------
$ pip install PIL  --allow-unverified PIL --allow-all-external


DEPRECATION: --allow-all-external has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.
DEPRECATION: --allow-unverified has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.
Collecting PIL
Could not find a version that satisfies the requirement PIL (from versions: )
No matching distribution found for PIL
126029 次浏览

你可以尝试使用 枕头,它是一个 PIL 分叉:

pip install Pillow

进口使用:

from PIL import Image

PILPillow中。试试这个:

$ pip install Pillow