解决 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

posted @ 2022-03-20 16:34  AlexEvans  阅读(2094)  评论(0编辑  收藏  举报