栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

pip安装MarkupSafe报错:Could not find a version that satisfies the requirement MarkupSafe

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

pip安装MarkupSafe报错:Could not find a version that satisfies the requirement MarkupSafe

ERROR: Could not find a version that satisfies the requirement MarkupSafe==1.10
(from versions: 0.9, 0.9.1, 0.9.2, 0.9.3, 0.11, 0.12, 0.13, 0.14, 0.15, 0.16, 0.
17, 0.18, 0.19, 0.20, 0.21, 0.22, 0.23, 1.0, 1.1.0, 1.1.1, 2.0.0a1, 2.0.0rc1, 2.
0.0rc2, 2.0.0, 2.0.1)
ERROR: No matching distribution found for MarkupSafe==1.10

附图:(大概意思就是说从这些版本中没有找到符合要求的版本)

解决方法:

第一步:找到requirements.txt这个文件,将MarkupSafe==后面的版本修改为1.1.1或者其他版本

注意修改的时候版本号尽量复制:

这些版本都可以复制, 不过建议选择1.0左右的版本

 0.9, 0.9.1, 0.9.2, 0.9.3, 0.11, 0.12, 0.13, 0.14, 0.15, 0.16, 0.
17, 0.18, 0.19, 0.20, 0.21, 0.22, 0.23, 1.0, 1.1.0, 1.1.1, 2.0.0a1, 2.0.0rc1, 2.
0.0rc2, 2.0.0, 2.0.1

然后在执行命令就可以了(注意其中的D:stuManagerrequirements.txt这个要换成你本地的地址哦):

pip install -r D:stuManagerrequirements.txt -i https://pypi.do
uban.com/simple

如果有用记得关个注吧,mua~!

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/879018.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号