尝试安装PIL时出错

Shi*_*ira 36 python install python-imaging-library

我尝试安装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
Run Code Online (Sandbox Code Playgroud)

mav*_*viz 78

您可以尝试使用Pillow,这是一个PIL分叉:

pip install Pillow
Run Code Online (Sandbox Code Playgroud)

要导入使用:

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


Fom*_*aut 5

图书馆PILPillow。尝试这个:

$ pip install Pillow
Run Code Online (Sandbox Code Playgroud)