解决:ERROR: No matching distribution found for PIL

解决:ERROR: No matching distribution found for PIL

背景

在搭建之前的代码环境时,报错:
ERROR: Could not find a wersion that satisfies the requirement PIL(from versions: none)
ERROR: No matching distribution found for PIL

报错问题

ERROR: Could not find a wersion that satisfies the requirement PIL(from versions: none)
ERROR: No matching distribution found for PIL

截图如下:
在这里插入图片描述

报错翻译

主要报错信息内容翻译如下所示:

ERROR: Could not find a wersion that satisfies the requirement PIL(from versions: none)
ERROR: No matching distribution found for PIL

翻译:

错误:找不到满足要求PIL的版本(来自版本:none)
错误:找不到与PIL匹配的分布

报错原因

经过查阅资料,经过查阅资料,发现是模块名字错了。

小伙伴们按下面的解决方法即可解决!!!

解决方法

使用正确的名字pillow安装。

修改前:

pip install PIL

修改后:

pip install pillow


今天的分享就到此结束了

欢迎点赞评论关注三连

在这里插入图片描述

你可能感兴趣的:(Python,python,pillow)