[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. windows无法启动MySQL服务报错1067的解决方法是怎样?

    方法一: 1.打开my.ini文件,找到default-storage-engine=InnoDB这一行,把它改成default-storage-engine=MyISAM.2.删除在MySQL安装目 ...

  2. iPhone使用CoreTelephony获得SIM卡网络运营商资讯和通话资料

    注意要加头文件目录 /System/Library/Frameworks/CoreTelephony.framework/Headers 到 build 设置 Header Search Paths, ...

  3. 从0开始学习 GitHub 系列之「08.如何发现优秀的开源项目」

    之前发过一系列有关 GitHub 的文章,有同学问了,GitHub 我大概了解了,Git 也差不多会使用了,但是 还是搞不清 GitHub 如何帮助我的工作,怎么提升我的工作效率? 问到点子上了,Gi ...

  4. 蚁群算法MATLAB解TSP问题

    Excel表exp12_3_1.xls中数据为: clc clear all [xdata,textdata]=xlsread('exp12_3_1.xls'); %加载20个城市的数据,数据按照表格 ...

  5. Android——app基础

    Android Application基础 系统启动过程 APK文件介绍 APK是Android Package的缩写,即android安装包.APK 文件其实是zip 格式,但后缀名被修改为apk  ...

  6. font-family:黑体;导致css定义全部不起作用

    css文件里font-family: "黑体";这句会导致后面的css定义全部不起作用了. 只要把font-family: "黑体"; 改成 font-fami ...

  7. 使用Gradle构建项目

    使用gradle构建项目之前,咱们先聊聊maven,使用maven构建项目和配置主要 接下来正式使用gradle来构建项目的和步骤: 1.下载源码 2.下载gradle 1.下载地址:https:// ...

  8. laravel 图片

    /** * 缩略图上传 */ public static function addPic() { $inputData = request()->all(); $rules = [ 'main_ ...

  9. PHPCMS快速建站系列

    模板标签   {pc:content action="position" posid="2" order="id DESC" num=&qu ...

  10. IDEA-servlet项目创建web项目

    准备:1. 安装jdk1.82. 安装tomcat9.0(idea只支持4.0  9.0的服务器) 一.创建并设置javaweb工程 1.创建javaweb工程File --> New --&g ...