Anaconda更新一直報錯,修改成國內鏡像也很差使,最終找到了未被屏蔽的鏡像。學習
錯誤日誌:url
UnavailableInvalidChannel: The channel is not accessible or is invalid. channel name: simple channel url: http://pypi.douban.com/simple error code: 404
意思是資源路徑無效或沒法訪問;資源的url地址是 http://pypi.douban.com/simple,錯誤代碼是404。spa
404是指連接指向的網頁不存在,即原始網頁的URL失效。日誌
解決辦法:code
1.首先恢復配置: conda config --remove-key channelsblog
conda config --remove-key channels 資源
2.再配置鏡像: Anaconda 2019-12-17目前可以使用鏡像: https://repo.continuum.io/pkgs/free/ https://repo.continuum.io/pkgs/main/rem
conda config --add channels https://repo.continuum.io/pkgs/free/ conda config --add channels https://repo.continuum.io/pkgs/main/
conda config --set show_channel_urls yes
3.查看配置信息:博客
conda config --show channels
備註:
做者:Sm Zeng
博客:http://www.cnblogs.com/zengming/
嚴正聲明:
1.因爲本博客部分資源來自互聯網,版權均歸原做者全部。轉載的目的是用於學術交流與討論學習,將不對任何資源負法律責任。
2.若無心中侵犯到您的版權利益,請來信聯繫我,我會在收到信息後會儘快給予處理!
3.全部資源內容僅供學習交流之用,請勿用做商業用途,謝謝。
4.若有轉發請註明出處,來源於http://www.cnblogs.com/zengming/,謝謝合做。io