CondaHTTPError: HTTP 000 CONNECTION FAILED
[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的更多相关文章
- Anaconda更新失败简单解决[CondaHTTPError: HTTP 000 CONNECTION FAILED for url]
问题:conda无法安装更新,报错内容如下:参考链接:conda httperror http none none for url none Anaconda更新失败 conda create -n ...
- [Python] CondaHTTPError: HTTP 000 CONNECTION FAILED for url
CondaHTTPError: HTTP 000 CONNECTION FAILED for url 遇到这个问题 解决方法如下两个 一.C:\Users\Administrator 目录下 编辑 . ...
- pycharm安装pika提示CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com>
1. 问题描述: pycharm安装第三方库时提示CondaHTTPError: HTTP 000 CONNECTION FAILED. 2. 错误原因:默认镜像源访问速度过慢,会导致超时从而导致更新 ...
- Anaconda建立新的环境,出现CondaHTTPError: HTTP 000 CONNECTION FAILED for url ...... 解决过程
2020.3.7准备scrapy,使用anaconda创建一个新的环境,执行"conda create -n scrapyEnv python=3.6",结果出现了"Co ...
- Anaconda3-更换为清华源后依旧报错CondaHTTPError: HTTP 000 CONNECTION FAILED
前言 今天发现换完清华源以后依旧报错 CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsi.. ...
- 问题: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 ...
- 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 ...
- 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/ ...
- 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 ...
随机推荐
- Leetcode598.Range Addition II范围求和2
给定一个初始元素全部为 0,大小为 m*n 的矩阵 M 以及在 M 上的一系列更新操作. 操作用二维数组表示,其中的每个操作用一个含有两个正整数 a 和 b 的数组表示,含义是将所有符合 0 < ...
- XtraBackup构建MySQL主从环境的方法
环境:HE3主库,HE1从库HE1:192.168.1.248HE3:192.168.1.250从库my.cnf加入以下参数并重启数据库:read_only=1log_slave_updates=1( ...
- PHP 学习1.1
1 链接mysql 数据简单测试 <html><head> <title></title> <meta http-equiv="Co ...
- 基于keras中IMDB的文本分类 demo
本次demo主题是使用keras对IMDB影评进行文本分类: import tensorflow as tf from tensorflow import keras import numpy a ...
- HR招聘_(八)_招聘方法论(面试环节·问题设计)
基本情况: 您目前是在职还是离职?最快的到岗时间是? 目前的薪资情况如何,期望薪资是? 您是哪里人,单身吗? 动机判断: 您看机会主要考虑哪些因素? 最重要的是什么? 未来两三年的职业规划是? 您住在 ...
- 集合-Map 接口
1. 概述 java.util.Map <K,V>接口是一个顶层接口,里面存放的数据单元是:单对元素: K 表示 描述的键 的类型,Key 的类型: V 表示 描述的值 的类型,Val ...
- passive的作用和原理
passived到底有什么用? passived主要用于优化浏览器页面滚动的性能,让页面滚动更顺滑~~ passived产生的历史时间线 addEventListener():大家都是认识的,为dom ...
- 【心有猛虎】react-lesson
这个项目标识:构建一套适合 React.ES6 开发的脚手架 项目地址为:https://github.com/ZengTianShengZ/react-lesson 运行的是第一课,基本上可以当作是 ...
- 【心有猛虎】react-pxq
这是一个比较完整的简单的react移动端项目,说起来页面少,其实,构思若是精巧,也并不容易做 先放源码:https://github.com/bailicangdu/react-pxq 接下来我们简单 ...
- Sublime Text3安装教程,配置教程,常用插件安装等方法
前言: sublimeText3的特点: 1.Sublime Text 是一款跨平台代码编辑器,在Linux.OS X和Windows下均可使用. 2.Sublime Text 是可扩展的,并包含大量 ...