anaconda 解決 “CondaHTTPError: HTTP 000 CONNECTION FAILED for url“ 問題 | 解決spyder無法更新到最新版本

報錯

Collecting package metadata (current_repodata.json): failed CondaHTTPError: HTTP 000 CONNECTION FAILED for url https://repo.anaconda.com/pkgs/main/win-64/current_repodata.json Elapsed: - 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. If your current network has https://www.anaconda.com blocked, please file a support request with your network engineering team. ‘https://repo.anaconda.com/pkgs/main/win-64’

在這裏插入圖片描述


方案一

在 powershell 和 cmd 裏 conda update --all 報錯網絡無法連接,

但是在 Anaconda 的圖形界面中 卻可以更新

由此判斷, 這可能是控制檯或者系統的問題

我們不妨使用 coda 的專屬控制檯 Anaconda Prompt 來操作

如下圖中一個是基於powershell 一個是基於 powershell

任選一個進入操作即可

這個解決方案同樣適合於 在 powershell 或者 cmd 裏 使用命令啓動 Anaconda 圖形界面報錯的問題

在這裏插入圖片描述

在這裏插入圖片描述

方案二

很明顯, 又是因爲衆所周知的網絡原因阻斷了…

那解決方案有兩種,

一種是掛私服代理

一種接是開源鏡像

這裏就接清華的鏡像了

進入用戶目錄, 編輯配置文件

vim ~/condarc

在 chanel裏 加上如下

  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/

保存關閉即可

在這裏插入圖片描述

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