解决 ERROR: Could not find a version that satisfies the requirement xxx 的问题


解决 ERROR: Could not find a version that satisfies the requirement xxx 的问题

1.解决 ERROR: Could not find a version that satisfies the requirement xxx 的问题

我们经常通过pip安装东西时常常会出现ERROR: Could not find a version that satisfies the requirement xxx的问题。该问题常常会误导我们认为是下载的安装包之间存在冲突,因而花费大量的时间去配置各种各样的环境。

  • 其实出现这个问题的原因是python国内网络不稳定,直接导致报错。因此我们常用镜像源来解决此问题。如下
pip install 包名 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

image


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM