成功解决:ERROR: No matching distribution found for re

成功解决:ERROR: Could not find a version that satisfies the requirement re ( from versi ons: none)
ERROR: No matching distribution found for re







报错问题

群里的小伙伴提出的问题:

在这里插入图片描述

在这里插入图片描述

报错内容

ERROR: Could not find a version that satisfies the requirement re ( from versi ons: none)
ERROR: No matching distribution found for re



解决思路

报错内容翻译

  • 错误:找不到满足re要求的版本(来自版本:无)
  • 错误:找不到re的匹配分发

报错原因

  • 报错的意思是找不到re库
  • re库是Python环境自带的,pip安装那肯定是找不到


解决方法

直接导包即可:

import re

猜你喜欢

转载自blog.csdn.net/yuan2019035055/article/details/125310600