PIL名称已经换成了Pillow,如下图

python安装PIL包的方法

所以使用:

pip3 install pil

会报错。

 

正确方法是:

pip3 install pillow

python安装PIL包的方法

 

相关文章: