问题:在调用pil时显示pil标红

我在设置中下载每次失败,显示
ERROR: Could not find a version that satisfies the requirement PIL (from versions: none)
ERROR: No matching distribution found for PIL
我尝试了很久,查看了一些博客
(PIL库在PyCharm安装失败解决办法_pycharm安装pil失败-CSDN博客)
这篇很有用
下面是解决方案:
下载替代库
在设置setting中找到python解释器,具体操作如图
点击+,搜索Pillow(失败可以下载Pillow-PIL)
出现已成功安装就是成功了

这时页面中出现了对应模块,返回代码PIL的红色就不见了,可以成功运行了。
通过pip安装
在 命令提示符中
pip install pillow

出现横线所示就好了
结语
本人纯小白,欢迎评论留言,批评指正