遇到的问题
Collecting package metadata (current_repodata.json): failed
CondaHTTPError: HTTP 000 CONNECTION FAILED for url
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://conda.anaconda.org/u200bu200bu200bu200bu200bu200bhttp://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/linux-64'
0、查看conda的配置channels
conda config --show channels
1、恢复默认的配置
conda config --remove-key channels
2、根据conda的运行环境,添加下面三个指令,运行环境的Index of /anaconda/pkgs/main/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror
| Parent directory/ | - | - |
| linux-32/ | - | 2020-11-03 03:01 |
| linux-64/ | - | 2022-05-21 20:14 |
| linux-aarch64/ | - | 2022-05-21 20:15 |
| linux-armv6l/ | - | 2020-03-21 23:30 |
| linux-armv7l/ | - | 2020-03-21 23:30 |
| linux-ppc64le/ | - | 2022-05-21 20:16 |
| noarch/ | - | 2022-05-21 05:47 |
| osx-32/ | - | 2017-11-27 11:37 |
| osx-64/ | - | 2022-05-21 20:18 |
| osx-arm64/ | - | 2022-05-21 20:19 |
| win-32/ | - | 2022-05-21 20:20 |
| win-64/ | - | 2022-05-21 20:19 |
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/linux-64
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/linux-64
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/linux-64
3、关掉ssl验证
conda config --set ssl_verify false
4、删掉默认的配置
conda config --remove channels defaults
5、显示url
conda config --set show_channel_urls true



