ananconda源问题于解决

xiaoxiao2021-02-28  138

conda httperror http none none for url none Anaconda更新失败

在conda安装好之后,默认的镜像是官方的,由于官网的镜像在境外,访问太慢或者不能访问,为了能够加快访问的速度,这里选择了清华的的镜像。

在命令行中运行(设置清华的镜像)

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

Anaconda更新失败

仔细看了一下之后,问题只可能是出在default channel上面。于是索性删掉channels下面的 -defaults一行,果然更新成功了。

附上:C:\Users\lqk\.condarc

channels:   - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/   - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/   - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/   - defaults show_channel_urls: true
转载请注明原文地址: https://www.6miu.com/read-48970.html

最新回复(0)