用conda命令打包环境,出现了如下错误:

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/linux-64/current_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.
'https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/linux-64'

原因:连不上清华的镜像。

按照网上的方法删除 -default 也没有用。

 

修改方法:

使用下面两个命令,将中科大的镜像加到目录中去

$conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
$conda config --set show_channel_urls yes

然后打开./删除其他所有镜像,以及default

$vim ~/.condarc

修改前:

修改后:

然后就可以了!

 

 

看网上有人说,把https 改为http也行,没试,不知道可行否

GitHub 加速计划 / li / linux-dash
10
2
下载
A beautiful web dashboard for Linux
最近提交(Master分支:28 天前 )
186a802e added ecosystem file for PM2 5 年前
5def40a3 Add host customization support for the NodeJS version 5 年前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐