CondaHTTPError: HTTP 000 CONNECTION FAILED for url ...... 解决过程
使用anaconda创建一个新的环境,执行“conda install”命令,结果出现了“CondaHTTPError: HTTP 000 CONNECTION FAILED for url https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64/current_repodata.json”。以下是我的解决步骤。
一、电脑的环境
操作系统:windows10 64位
Anaconda版本:conda 5
二、解决步骤
进入”C:\Users\Administrator“,打开“.condarc“,看到这个文件为:
(.condarc文件打开方法二:win+R,然后输入%HOMEPATH%)
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/main- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/- defaults- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/fastai/- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
ssl_verify: true
show_channel_urls: true
尝试打开镜像的第一个地址“https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main”,打开以后看到的是以下界面:
似乎找到了问题所在:镜像地址应该加上"win-64"。
你也可能会在channels:下面看到 ”- default“,请删除它。
最终的".condarc"为:
channels:- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64/- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64/
ssl_verify: true
show_channel_urls: true
有文章说要将https改为http,但是我试了不行,http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64/这个网址都打不开,https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64/这个才打得开,所以最终用这个打得开的网址解决成功。
参考这篇文章的解决思路:Anaconda建立新的环境,出现CondaHTTPError: HTTP 000 CONNECTION FAILED for url … 解决过程
感悟:有时候某个博客里的经验是针对他当时的环境和遇到的问题的解决方法,我们不能照搬,而只能借鉴,因为我们的环境和问题可能又不同了,而那篇博客里可能并没有考虑到我现在遇到的问题,所以遇到问题要实事求是、与时俱进、具体问题具体分析。
如果对您有帮助的话,请博主喝杯奶茶吧~
CondaHTTPError: HTTP 000 CONNECTION FAILED for url ...... 解决过程相关推荐
- Anaconda建立新的环境,出现CondaHTTPError: HTTP 000 CONNECTION FAILED for url 解决过程
Anaconda建立新的环境,出现CondaHTTPError: HTTP 000 CONNECTION FAILED for url ...... 解决过程 - tianlang25 - 博客园 a ...
- Windows 下 Conda install 安装出现CondaHTTPError: HTTP 000 CONNECTION FAILED for url解决措施
在使用Conda install 安装库的时候出现以下错误 原因是使用的是国外的镜像,切换至国内镜像就可以解决啦 在cmd 中输入下面命令 conda config --add channels ht ...
- 执行“conda create -n scrapyEnv python=3.6”,结果出现了“CondaHTTPError: HTTP 000 CONNECTION FAILED for url <h
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsinghua.edu.cn/anaconda ...
- 解决:CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pk gs/main/win-64/c
解决上一篇未解决的问题:上一篇博客 https://blog.csdn.net/ckc_csdn/article/details/110824643 问题 解决办法 其他问题的解决 一.问题 Cond ...
- 遇见--CondaHTTPError: HTTP 000 CONNECTION FAILED for url 怎么解决
1.CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsi解决办法 亲测有效 2.解决Conda ...
- 解决:CondaHTTPError: HTTP 000 CONNECTION FAILED for url
利用miniconda安装python3.9的环境时,报错如下: 本地可以打开报错的网站,即 https://repo.anaconda.com/pkgs/main/win-64/current_re ...
- 解决CondaHTTPError:HTTP 000 CONNECTION FAILED for url<https://mirrors.tuna.tsinghua.edu.cn/anaconda***
解决CondaHTTPError:HTTP 000 xxx 前言 1.解决方法 方法一:直接通过cmd修改 方法二:通过.condarc文件进行更改 3.一些读者反馈的方法bug解决方案与注意事项 前 ...
- 成功解决CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsinghua.edu.cn/anacond
成功解决CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsinghua.edu.cn/anac ...
- 解决CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsinghua.edu.cn/anaconda/
背景: Anaconda 创建新的环境conda create -n name 或者安装package conda install xxx 时总出错:CondaHTTPError: HTTP 000 ...
- 安装tensorflow报错---CondaHTTPError: HTTP 000 CONNECTION FAILED for url
安装tensorflow报CondaHTTPError: HTTP 000 CONNECTION FAILED for url错,有两种方案: 1.tensorflow下载源太慢,超出链接时长,解决办 ...
最新文章
- java常用 api
- Hello!The familiar and strange world.
- Web网站架构设计(转)
- 网络编程释疑之:TCP协议的“流”特性
- oracle system表空间扩容,Oracle 11g system表空间快速增长解决
- php如何直接使用iview,iview安装使用
- python升级版本命令_如何在python中安装和配置kivy库
- 我花600小时,调研30家银行,为你讲透银行数据架构,小白都能懂
- Apache—DBUtils框架简介
- 腾讯开源开年红!TencentOS 内核正式开源
- java static 变量,和方法从属于类
- MyBatis Plus 导入IdType失败
- 80端口攻击_使用 ZoomEye 寻找 APT 攻击的蛛丝马迹
- Tesseract-OCR识别 学习(一)命令识别
- c语言用光标键控制图形,C语言图形设计参考资料.ppt
- 22MySQL有哪些“饮鸩止渴”提高性能的方法笔记
- C++后端开发的一些工具
- 财务自由之路笔记 第一章 你真正想要什么
- iphone手游模拟器_如何将iPhone用作手电筒
- M: Mysterious Conch(哈希表)