最近安裝Anaconda時發現,創建環境時報錯。於是上網找原因,發現普遍都是讓我們修改鏡像
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
然而經過實踐證明,並沒有什麼用。。。。
可是後來,我發現!!!!!!!!!!
只要把https改爲http居然就可以了!!!!!
打開.condarc文件,直接把https改爲http
再次創建環境,你就會發現,成功了!!!!
但是!!!
我並不建議使用清華的鏡像!因爲在2019年4月16日,清華鏡像站發出如下聲明:
在一個月以後,你就會發現,你的鏡像會失效。
所以,我還是建議使用中科大的鏡像。
同樣,記住使用http,否則報錯
複製粘貼即可:
channels:
- http://mirrors.ustc.edu.cn/anaconda/pkgs/free/win-64/
- http://mirrors.ustc.edu.cn/anaconda/pkgs/main/win-64/
show_channel_urls: true