“An HTTP error occurred when trying to retrieve this URL. ”报错怎么回事?Conda install error!!

“An HTTP error occurred when trying to retrieve this URL. ”报错怎么回事?Conda install error!!

【问题描述】

在windows下,用anaconda安装东西的时候报错如下:

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/win-64'

把这个源加进去又报错 http error

 

【解决】

打开 C盘/用户/(你的用户名xx)/.condarc,用记事本打开:

“An HTTP error occurred when trying to retrieve this URL. ”报错怎么回事?Conda install error!!

把channles和defaults 之间的 源删掉,即可。

 

【原因分析】

属于改源改崩了,报的错就是源的问题。

其实windows下安装很多东西不用改源,删掉反而还好些。

以后有需要的时候再加。