[root@localhost ~]# conda install samtools
Solving environment: failed CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/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.
ConnectionError(ReadTimeoutError("HTTPSConnectionPool(host='mirrors.tuna.tsinghua.edu.cn', port=443): Read timed out."))

之前配置清华镜像如下:

[root@localhost bin]# conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
[root@localhost bin]# conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
[root@localhost bin]# conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
[root@localhost bin]# conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
[root@localhost bin]# conda config --set show_channel_urls yes
[root@localhost bin]# conda config --get channels

后来修改.condarc文件(vi /root/.condarc),删除所有镜像,只添加这两个镜像。

[root@localhost ~]# cat /root/.condarc
channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
show_channel_urls: true

下载成功了:

[root@localhost ~]# conda install samtools
Solving environment: done ## Package Plan ## environment location: /root/miniconda3 added / updated specs:
- samtools The following packages will be downloaded: package | build
---------------------------|-----------------
bzip2-1.0.6 | h14c3975_5 414 KB https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
libdeflate-1.0 | h14c3975_1 43 KB https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda
ca-certificates-2019.1.23 | 0 126 KB https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
libcurl-7.64.0 | h20c2e04_2 600 KB https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
curl-7.64.0 | hbc83047_2 152 KB https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
samtools-1.9 | h8571acd_11 636 KB https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda
krb5-1.16.1 | h173b8e3_7 1.4 MB https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
openssl-1.1.1b | h7b6447c_1 4.0 MB https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
libssh2-1.8.0 | h1ba5d50_4 233 KB https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
------------------------------------------------------------
Total: 7.5 MB The following NEW packages will be INSTALLED: bzip2: 1.0.6-h14c3975_5 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
curl: 7.64.0-hbc83047_2 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
krb5: 1.16.1-h173b8e3_7 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
libcurl: 7.64.0-h20c2e04_2 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
libdeflate: 1.0-h14c3975_1 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda
libssh2: 1.8.0-h1ba5d50_4 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
samtools: 1.9-h8571acd_11 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda The following packages will be UPDATED: ca-certificates: 2018.03.07-0 defaults --> 2019.1.23-0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
openssl: 1.1.1a-h7b6447c_0 defaults --> 1.1.1b-h7b6447c_1 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main Proceed ([y]/n)? y Downloading and Extracting Packages
bzip2-1.0.6 | 414 KB | ############################################ | 100%
libdeflate-1.0 | 43 KB | ############################################ | 100%
ca-certificates-2019 | 126 KB | ############################################ | 100%
libcurl-7.64.0 | 600 KB | ############################################ | 100%
curl-7.64.0 | 152 KB | ############################################ | 100%
samtools-1.9 | 636 KB | ############################################ | 100%
krb5-1.16.1 | 1.4 MB | ############################################ | 100%
openssl-1.1.1b | 4.0 MB | ############################################ | 100%
libssh2-1.8.0 | 233 KB | ############################################ | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done

小礼物走一走,

作者:湖红点鲑
链接:https://www.jianshu.com/p/a2bca03b9c16
来源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。

CondaHTTPError: HTTP 000 CONNECTION FAILED的更多相关文章

  1. Anaconda更新失败简单解决[CondaHTTPError: HTTP 000 CONNECTION FAILED for url]

    问题:conda无法安装更新,报错内容如下:参考链接:conda httperror http none none for url none Anaconda更新失败 conda create -n ...

  2. [Python] CondaHTTPError: HTTP 000 CONNECTION FAILED for url

    CondaHTTPError: HTTP 000 CONNECTION FAILED for url 遇到这个问题 解决方法如下两个 一.C:\Users\Administrator 目录下 编辑 . ...

  3. pycharm安装pika提示CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com>

    1. 问题描述: pycharm安装第三方库时提示CondaHTTPError: HTTP 000 CONNECTION FAILED. 2. 错误原因:默认镜像源访问速度过慢,会导致超时从而导致更新 ...

  4. Anaconda建立新的环境,出现CondaHTTPError: HTTP 000 CONNECTION FAILED for url ...... 解决过程

    2020.3.7准备scrapy,使用anaconda创建一个新的环境,执行"conda create -n scrapyEnv python=3.6",结果出现了"Co ...

  5. Anaconda3-更换为清华源后依旧报错CondaHTTPError: HTTP 000 CONNECTION FAILED

    前言 今天发现换完清华源以后依旧报错 CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsi.. ...

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

    使用anaconda安装tensorflow (windows10环境) 遇到的问题:CondaHTTPError: HTTP 000 CONNECTION FAILED for url <ht ...

  7. CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.ustc.edu.cn/anaconda/pkg

    conda安装时一直报错,换源什么的都不好使,折腾了半天,直到看到https://blog.csdn.net/u013383596/article/details/87718472 将https改为h ...

  8. CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/win-64/repodata.json.bz2> Elapsed: -

    将C:\Users\<本机用户名>\.condarc文件修改为 channels: - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/ ...

  9. Conda安装包错误-CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/r/win-64/repodata.json> Elapsed:

    可能是防火墙问题:conda config --set ssl_verify false 安装 openssl . 换源: cmd输入conda config --add channels r 进入C ...

随机推荐

  1. 考试总结 模拟27(W)

    心得:太弱了,T1问题:理解错了题,矿石可以放到同一处,,太弱了,小凯的疑惑,没什么印象T2问题:拆式子T3问题:换根dp的思想模拟9T1+T2

  2. cf round 482D Kuro and GCD and XOR and SUM

    题意: 开始有个空集合,现在有两种操作: $(1,x)$:给集合加一个数$x$,$x \leq 10^5$; $(2,x,k,s)$:在集合中找一个$a$,满足$a \leq s-x$,而且$k|gc ...

  3. 【笔记】http1.1支持的7种请求方法

    本文是本人复习http协议整理笔记,以备后续查阅. http1.1支持的7种请求方法:get.post.head.options.put.delete.trace 在internet应用中,最常用的请 ...

  4. python编写购物车小程序

     #练习#程序购物车#启动程序后,让用户输入工资,  然后打印商品列表,允许用户根据商品编号购买商品用户选择商品后 #检测余额是否够,够就直接扣款,不够就提醒可随时退出,退出时,打印已购买商品和余额  ...

  5. Linux 上GCC的静态编译和动态编译

    静态编译 常规编译示例: $gcc xxx.c yyy.c zzz.c -o rslt 注明: gcc编译器会对源文件min.c进行预处理, 编译, 以及链接, 最后生成可执行文件 $gcc -c x ...

  6. 一文纵览EMAS 到底内含多少阿里核心技术能力

    申请阿里云EMAS,体验一站式移动研发平台,更多精彩尽在开发者会场 EMAS的整体定位是阿里巴巴移动技术对外输出的主窗口,沉淀了阿里巴巴近10年在移动互联网技术架构上的积累以及在一系列垂直场景中所实践 ...

  7. 廖雪峰Python总结4

    面向对象编程 将计算机程序视为一系列的命令集合.包含: 数据 操作数据的函数 Python中,所有的数据类型都可以视为对象. 面向对象特点:封装,继承,多态. 类的函数和普通函数:类的第一个参数永远是 ...

  8. FastAdmin 自学教程 - 目录(持续更新)(2019-10-11)

    FastAdmin 自学教程 - 目录 本自学教程将不定期更新. 了解 FastAdmin FastAdmin 开发第 1 天:了解 FastAdmin 框架 FastAdmin 开发第 2 天:安装 ...

  9. Leetcode728.Self Dividing Numbers自除数

    自除数 是指可以被它包含的每一位数除尽的数. 例如,128 是一个自除数,因为 128 % 1 == 0,128 % 2 == 0,128 % 8 == 0. 还有,自除数不允许包含 0 . 给定上边 ...

  10. 如何在“代码”视图中工作并充分利用 Dreamweaver 的编码功能。如 Emmet 缩写

    可通过多种方式在 Dreamweaver 中处理代码. 您可以使用“新建文档”对话框打开新的代码文件,然后开始键入您的代码. 在 Dreamweaver 中创建新的代码文件 键入时,会显示代码提示以帮 ...