Python安装包报错ERROR: Could not find a version that satisfies the requirement XXX解决方法
Posted 闲欢
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Python安装包报错ERROR: Could not find a version that satisfies the requirement XXX解决方法相关的知识,希望对你有一定的参考价值。
我们在使用 pip 安装 python 包时,经常会出现如下错误:
ERROR: Could not find a version that satisfies the requirement xxxx(from versions: none)
ERROR: No matching distribution found for xxxx
找了很久终于找到能解决这种报错的方法了。
直接选用pip源并且信任它的来源就可以解决这种问题。
pip install 库包名 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
上面使用了豆瓣源,将其换成清华源、阿里源等都适用。
清华源:
以上是关于Python安装包报错ERROR: Could not find a version that satisfies the requirement XXX解决方法的主要内容,如果未能解决你的问题,请参考以下文章
Streamsets 安装额外Stage包——CDH6.3.0包报错REST API call error: java.io.EOFException
Streamsets 安装额外Stage包——CDH6.3.0包报错REST API call error: java.io.EOFException
错误记录Python 安装依赖库报错 ( ERROR: Could not find a version that satisfies the requirement elftools )
记录在Windows下安装node-canvas遇到的各种问题(无法安装canvas,安装canvas包报错error...)