当前位置: 首页 > news >正文

【conda install】网络慢导致报错CondaHTTPError: HTTP 000 CONNECTION FAILED for url

⭐⭐问题:

部署安装环境经常会出现由于网络慢问题,导致conda安装不了库,报错如下:

Solving environment: failedCondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r/linux-64/repodata.json>
Elapsed: -An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
SSLError(MaxRetryError('HTTPSConnectionPool(host=\'mirrors.tuna.tsinghua.edu.cn\', port=443): Max retries exceeded with url: /anaconda/pkgs/r/linux-64/repodata.json (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available.",))',),)

🙋🙋解决方案:

1、备份本地配置 

#1、备份本地配置 
cp ~/.condarc ~/.condarc.bakvim ~/.condarc

2.修改.condarc内容


#2、删除原来的内容,填入以下
channels:- defaults
show_channel_urls: true
channel_alias: https://mirrors.tuna.tsinghua.edu.cn/anaconda
default_channels:- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/pro- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
custom_channels:conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloudmsys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloudbioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloudmenpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloudpytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloudsimpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud#3、清除缓存
conda clean -i

保存,即可用国内镜像快速下载安装了。

 

整理不易,欢迎一键三连!!!


送你们一条美丽的--分割线--

🌷🌷🍀🍀🌾🌾🍓🍓🍂🍂🙋🙋🐸🐸🙋🙋💖💖🍌🍌🔔🔔🍉🍉🍭🍭🍋🍋🍇🍇🏆🏆📸📸⛵⛵⭐⭐🍎🍎👍👍🌷🌷

http://www.lryc.cn/news/144223.html

相关文章:

  • 2023-8-28 图中点的层次(树与图的广度优先遍历)
  • 设计模式(一)
  • Prometheus关于微服务的监控
  • CSS实现白天/夜晚模式切换
  • selenium实现输入数字字母验证码
  • Docker的运用
  • 在项目中快速搭建机器学习的流程
  • 计网-All
  • Rabbitmq的Federation Exchange
  • AIGC - 生成模型
  • 如何优雅地创建一个自定义的Spring Boot Starter
  • Hbase--技术文档--单机docker基础安装(非高可用)
  • React 生命周期新旧对比
  • 云计算存储类型
  • javacv基础03-调用本机摄像头并截图保存到本地磁盘
  • Python读取Windows注册表的实战代码
  • macOS 安装 Homebrew 详细过程
  • 数据结构之树型结构
  • 指针进阶详解
  • QGIS 如何添加天地图
  • PHP8内置函数中的数学函数-PHP8知识详解
  • 云计算企业私有云平台建设方案PPT
  • ORA-01174: DB_FILES be compatible RAC rolling fashion complete outage
  • 线性代数(五) 线性空间
  • kafka--技术文档--spring-boot集成基础简单使用
  • 【核磁共振成像】部分傅里叶重建
  • React中的flushSync与Vue中的nextTick的比较
  • golang设置国内镜像源
  • linux切换到root没有conda环境
  • 数据库——redis介绍