1. 最近做项目需要用到pytorch等库,当我使用conda下载pytorch时出现以下错误:
    CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsinghua.edu.cn/anaconda/.
    而当我换豆瓣、国科大、阿里等信号源后依然出现错误,错误类型我没看,和上述类似;
    后来在一篇博客上看见有人提了一句将https换成http,于是我尝试了一下,居然成了,特此分享。
    我就不引用该博客了,因为他用了另一种方法,就提了一句本文的方法,请见谅哈!
    解决方法如下:
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
conda config --set show_channel_urls yes

  1. 除此之外Windows用户还可以在用户目录下的修改.condarc文件,例如:C:\Users\Lenovo文件夹下修改.condarc文档,将其中的内容替换为如下代码:
channels:- defaults
show_channel_urls: true
default_channels:- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
custom_channels:conda-forge: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloudmsys2: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloudbioconda: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloudmenpo: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloudpytorch: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloudsimpleitk: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud

注:别人也有类似的文档,不过我也是花了些时间,为了让大伙儿都方便些,所以拿去,不谢!

CondaHTTPError:HTTP 000 CONNECTION FAILED for url<https://mirrors.tuna.tsinghua.edu.cn/anaconda***相关推荐

  1. 解决CondaHTTPError:HTTP 000 CONNECTION FAILED for url<https://mirrors.tuna.tsinghua.edu.cn/anaconda***

    解决CondaHTTPError:HTTP 000 xxx 前言 1.解决方法 方法一:直接通过cmd修改 方法二:通过.condarc文件进行更改 3.一些读者反馈的方法bug解决方案与注意事项 前 ...

  2. 解决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 ...

  3. CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsinghua.edu.cn/anaconda错误

    在使用anaconda创建一个新的环境,执行"conda create -n tf110 python=3.6",出现了 CondaHTTPError: HTTP 000 CONN ...

  4. CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsinghua.edu.cn/anaconda/pk

    在Linux中,使用Miniconda创建 Python 3.6 环境时报以下错误 [evil@hadoop102 ~]$ conda create --name superset python=3. ...

  5. 成功解决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 ...

  6. conda问题CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsinghua.edu.cn/anac

    问题描述 在使用conda安装软件包的时候,会遇到下面这个报错: Collecting package metadata (repodata.json): failedCondaHTTPError: ...

  7. CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirror.tuna.tsinghua.edu.cn/anaconda/pkg

    使用conda创建tensorflow环境时(conda create -n tensorflow python=3.6)出现:CondaHTTPError: HTTP 000 CONNECTION ...

  8. CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.ts

    清华源不更新了.我遇到这个问题是删除defaults和其他国内镜像.使用如下上交大镜像 channels:- defaults show_channel_urls: true channel_alia ...

  9. 【conda】网络错误CondaHTTPError: HTTP None None for url <https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkg

    问题: 在conda 创建新环境的时候遇到: CondaHTTPError: HTTP None None for url <https://mirrors.tuna.tsinghua.edu. ...

最新文章

  1. 极光推送后台php接口,极光推送Jpush(v2)接口 服务端PHP版本的REST API推送类
  2. Redis学习-String
  3. oracle 11g安装卸载,安装及卸载oracle 11g步骤
  4. http://wenku.baidu.com/view/26afdb8371fe910ef12df8ccRevit采用DWG和FBX两种格式导入3D max方法的总结...
  5. RAC环境下的备份与恢复(二)
  6. linux中设置环境变量PATH的方法(转)
  7. java控制进程_⑨进程控制
  8. java string split的使用
  9. yolov4实现口罩佩戴检测,在验证集上做到了0.954的mAP
  10. 高通模式9008模式linux,高通芯片如何进入9008模式深度救砖
  11. 多线程编程——pthread
  12. shardingsphere之sharding-proxy读写分离学习笔记
  13. 2022小美赛数学建模(认证杯)ABCD题思路模型代码
  14. 微信小程序登录-PHP后端
  15. PilotEdit(文本编辑器软件)官方中文版V14.5.0 | pilotedit是什么软件
  16. (二) Nginx手机版和PC电脑版网站配置
  17. 计算机屏幕分辨率在哪看,笔记本屏幕分辨率有几种 怎么看电脑分辨率
  18. Theory and Applications of OFDM and CDMA: Wideband Wireless Communications
  19. 自定义jsp标签实现按钮权限控制
  20. WeX5之登录注销功能实现

热门文章

  1. vs2015无法安装,提示安装包损坏
  2. http code 502/503/504
  3. ZeroMemory()
  4. 朱自清《荷塘月色》(股市版)
  5. cesium 3Dtiles、地图 自动旋转、罗盘控件
  6. [发布]箫心Web个人共享服务器2007.1.15.0 DotNetC#2.0开发
  7. 设计分享|单片机抢答器(汇编)
  8. 搜索引擎蜘蛛工作原理,如何引蜘蛛?
  9. Optional int parameter ‘xxx‘ is present but cannot be translated into a null value due to being.....
  10. CRect::DeflateRect() 和OffsetRect()