溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

anaconda使用conda報錯CondaHTTPError怎么辦

發(fā)布時間:2020-07-23 11:08:05 來源:億速云 閱讀:282 作者:清晨 欄目:編程語言

小編給大家分享一下anaconda使用conda報錯CondaHTTPError怎么辦,希望大家閱讀完這篇文章后大所收獲,下面讓我們一起去探討吧!

這個問題的原因是你在用conda命令的時候是調(diào)用了國外conda網(wǎng)站來給你安裝某些功能包,但是你在國內(nèi)用可能會出錯

解決:

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###使能

或者搜索你的.condarc文件

刪除-default一行,保證你的文件內(nèi)容如下:

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/
show_channel_urls: true

看完了這篇文章,相信你對anaconda使用conda報錯CondaHTTPError怎么辦有了一定的了解,想了解更多相關(guān)知識,歡迎關(guān)注億速云行業(yè)資訊頻道,感謝各位的閱讀!

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI