前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >设置好了conda镜像为什么仍然是有CondaHTTPError

设置好了conda镜像为什么仍然是有CondaHTTPError

作者头像
生信技能树
发布2022-12-16 14:41:59
4510
发布2022-12-16 14:41:59
举报
文章被收录于专栏:生信技能树

最近有学员使用我们的共享服务器,在里面安装好了conda之后,很简单的管理一个软件却遇到了报错,命令如下所示 :

代码语言:javascript
复制
conda install  -y -c bioconda  trim-galore

报错如下所示:

代码语言:javascript
复制

Downloading and Extracting Packages
fastqc-0.11.9        | 9.7 MB    | ############################3                                                         |  33%

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/bioconda/noarch/fastqc-0.11.9-hdfd78af_1.tar.bz2>
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.

学员非常肯定他是设置好了镜像:

代码语言:javascript
复制
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/cloud/bioconda/
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes 

而且也查看了他自己的 condarc :

代码语言:javascript
复制
$ cat ~/.condarc
channels:
  - https://mirrors.bfsu.edu.cn/anaconda/pkgs/main/
  - https://mirrors.bfsu.edu.cn/anaconda/pkgs/free/
  - https://mirrors.bfsu.edu.cn/anaconda/cloud/conda-forge/
  - https://mirrors.bfsu.edu.cn/anaconda/cloud/bioconda/
show_channel_urls: true

管理员让他简单的修改了前面的命令, 就是删除 -c bioconda ,命令如下所示:

代码语言:javascript
复制
conda install  -y   trim-galore

就成功了,但是原理是什么呢?

本文参与 腾讯云自媒体同步曝光计划,分享自微信公众号。
原始发表:2022-12-02,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 生信技能树 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档