当前位置:   article > 正文

Python安装包报错ERROR: Could not find a version that satisfies the requirement XXX解决方法

error: could not find a version that satisfies the requirement python (from

最近安装一些python库,总是安装提示以下错误,让人一脸懵逼:

  1. ERROR: Could not find a version that satisfies the requirement XXX (from v
  2. ersions: none)
  3. ERROR: No matching distribution found for XXX
  4. WARNING: There was an error checking the latest version of pip.

解决以上问题其实非常简单:

pip install 库包名   -i    http://pypi.douban.com/simple/     --trusted-host pypi.douban.com

在安装库的时候,临时需要用到某个镜像,这里以清华大学镜像为例下载pandas库

pip install pandas -i https://pypi.tuna.tsinghua.edu.cn/simple/

pip下载源常用的国内镜像如下:

豆瓣:http://pypi.douban.com/simple/
阿里云:http://

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/224934
推荐阅读
相关标签
  

闽ICP备14008679号