报错信息
Collecting package metadata (repodata.json): failed
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/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."))
解决:
问题是由于镜像源失效造成的,因此首先查看当前的镜像源
conda config --show channels
之后删除当前失效的的镜像源
conda config --remove channels
再添加目前有效的镜像源,例如此时中科大的镜像源 https://mirrors.ustc.edu.cn/anaconda/pkgs/free/ 是有效的
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
检查是否添加成功
conda config --show channels