当前位置:   article > 正文

SSLError(MaxRetryError(‘HTTPSConnectionPool解决方案_max retries exceeded with url: /pkgs/main/linux-64

max retries exceeded with url: /pkgs/main/linux-64/repodata.json.bz2 (caused


SSLError(MaxRetryError('HTTPSConnectionPool(host=\'repo.anaconda.com\', port=443): Max retries exceeded with url: /pkgs/main/linux-64/repodata.json.bz2 (Caused by SSLError(SSLError("bad handshake: SysCallError(104, \'ECONNRESET\')",),))',),)

解决方案链接:https://blog.51cto.com/11970781/2132327

  1. # TUNA 还提供了 Anaconda 仓库的镜像,运行以下命令即可添加 Anaconda Python 免费仓库
  2. conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
  3. conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
  4. # 设置搜索时显示通道地址
  5. conda config --set show_channel_urls yes
  6. # 执行完上述命令后,会生成配置文件记录着我们对conda的配置,直接手动创建、编辑该文件是相同的效果
  7. # Linux/Mac
  8. ~/.condarc

编辑  .condarc

注释defalts(这个是解决问题的关键所在)

  1. # 编辑.condarc注释defalts
  2. channels:
  3. - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
  4. - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
  5. # - defaults
  6. ssl_verify: true
  7. show_channel_urls: true

 

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

闽ICP备14008679号