conda upgrade --all出現CondaHTTPError: HTTP 000 CONNECTION FAILED for url

解決辦法:

1.我先添加了如下清華鏡像源,問題沒有解


conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/

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

2.在用戶Home目錄下找到.condarc文件,刪除-defaults一行,問題仍麼有解決

3.用記事本打開.condarc文件,將https:改成http:,問題最終得到解決。

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章