conda安装模块时报错

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/yuyanyanyanyanyu/article/details/79034404

我在linux中安装pytorch,在安装过程中部分模块安装完成后便报如下的错:

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/soumith/linux-64/repodata.json>

不知道神马原因,因为部分已经下载成功,尝试了网上很多其他的pip,源码安装等都有错,甚是绝望,然后尝试先安装依赖模块numpy等。当conda install numpy时居然也报这个错,才反应过来会不会是conda的锅,网上一查原来倒在了墙下,易居网上的方法:使用清华的镜像解决了这个问题:

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
结果还是不行,接下来将.condarc中的中的defaults删除或屏蔽了就OK了


猜你喜欢

转载自blog.csdn.net/yuyanyanyanyanyu/article/details/79034404
今日推荐