anaconda3镜像源修改后,无法安装软件包
2021-11-15 本文已影响0人
守望一株麦穗
修改anaconda3的镜像源后,出现了以下错误。
Fetching package metadata ...
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/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.
SSLError(SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",),),)
我是在操作SUSE-SP1 -64bit操作系统下,使用anaconda3软件安装软件时出现了这样的错误信息。
该错误是在通过conda config --add channels修改了相关信息后才出现,如果不修改镜像源,可以正常运行,大不了找不到需要的软件包。
在默认情况下conda info信息如下:
image修改镜像源的命令行:
conda config --add channels [https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/](https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/)
image
修改之后的conda info如下:
image然后就出现文章最初提到的错误了。
为解决错误,查找类似问题的解决方案。
解决方案1. 是删除.condarc中的- default那一行。这一方案对我的情况没有作用
解决方案2.将镜像源的https修改为http。这一方案有作用,很意外,不知道具体原因,但问题解决了。很开心。
另外一个问题。用哪个镜像源安装常见的生信分析软件呢。答案是bioconda
https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda