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 ...
随机推荐
- API安全验证之JWT(JSON WEB TOKEN) OLCMS
假如www.olcms.com/getUserInfo获取用户信息,你怎么知道当前用户是谁?有人说登陆时候我把他UID写入session了,如果是API接口,没有session怎么办,那么就需要把UI ...
- 传统保险企业基于 Dubbo 的微服务实践
本文整理自中国人寿保险(海外)股份有限公司深圳中心技术总监家黄晓彬在 Dubbo 社区开发者日深圳站的现场分享. 中国人寿保险(海外)股份有限公司负责香港.澳门.新加坡和印尼的业务开发,和国内业务不同 ...
- Wndows下Apache+php+Mysql环境的搭建及其涉及的知识
一.安装Apache 1. 在网上搜索以下3个文件,以及找一个地方新建一个文件夹 好吧,这里有下载链接:http://pan.baidu.com/s/1hr9IdSS 文件夹内有:apache,mys ...
- PHP协程:并发 shell_exec
在PHP程序中经常需要用shell_exec执行一些命令,而普通的shell_exec是阻塞的,如果命令执行时间过长,那可能会导致进程完全卡住.在Swoole4协程环境下可以用Co::exec并发地执 ...
- Leetcode884.Uncommon Words from Two Sentences两句话中的不常见单词
给定两个句子 A 和 B . (句子是一串由空格分隔的单词.每个单词仅由小写字母组成.) 如果一个单词在其中一个句子中只出现一次,在另一个句子中却没有出现,那么这个单词就是不常见的. 返回所有不常用单 ...
- vue @click.native
1,给vue组件绑定事件时候,必须加上native ,不然不会生效(监听根元素的原生事件,使用 .native 修饰符) 2,等同于在自组件中: 子组件内部处理click事件然后向外发送click事件 ...
- 元素的高度(基于vue)
const viewH =el.target.offsetHeight;//可见高度 const contentH =el.target.scrollHeight;//内容高度 const scrol ...
- Android实战:手把手实现“捧腹网”APP(一)-----捧腹网网页分析、数据获取
Android实战:手把手实现"捧腹网"APP(一)-–捧腹网网页分析.数据获取 Android实战:手把手实现"捧腹网"APP(二)-–捧腹APP原型设计.实 ...
- Myeclipse运行提示错误: 找不到或无法加载主类 test.test1 终极解决办法
前提是代码没有问题 简单粗暴的解决办法: 重启电脑 解决办法2: 1.在控制台中点开“Problems”,查看里面的错误.如果是多个项目,可以将其他项目暂时关闭. 根据错误进行处理. 2.把项目cle ...
- GCD使用经验与技巧浅谈
前言 GCD(Grand Central Dispatch)可以说是Mac.iOS开发中的一大“利器”,本文就总结一些有关使用GCD的经验与技巧. dispatch_once_t必须是全局或stati ...