python - Anaconda使用conda連接網絡出現錯誤
問題描述
我使用的是windows10 64bit下的Anaconda2,在安裝和更新包的時候出現以下報錯信息。這是使用默認源安裝包的報錯信息:C:Usersning0>conda install numpyFetching package metadata ...
CondaHTTPError: HTTP None None for url https://repo.continuum.io/pkg...Elapsed: None
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.ProxyError(MaxRetryError('HTTPSConnectionPool(host=’repo.continuum.io’, port=443): Max retries exceeded with url: /pkgs/free/win-64/repodata.json.bz2 (Caused by ProxyError(’Cannot connect to proxy.’, NewConnectionError(’<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x00000000048F3048>: Failed to establish a new connection: [Errno 10061] ’,)))',),)
下面是使用清華大學的鏡像安裝的報錯信息:C:Usersning0>conda install numpyFetching package metadata ...
CondaHTTPError: HTTP None None for url https://mirrors.tuna.tsinghua...Elapsed: None
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.ProxyError(MaxRetryError('HTTPSConnectionPool(host=’mirrors.tuna.tsinghua.edu.cn’, port=443): Max retries exceeded with url: /anaconda/pkgs/free/win-64/repodata.json (Caused by ProxyError(’Cannot connect to proxy.’, NewConnectionError(’<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x0000000004B19438>: Failed to establish a new connection: [Errno 10061] ’,)))',),)
求問這個問題怎么解決啊?我各種網站都找遍了。
問題解答
回答1:https://zhuanlan.zhihu.com/p/...沒用過,在知乎上看到這個文檔,希望有幫助。從報錯信息來看,是網絡鏈接問題。
回答2:你設置了代理或者vpn?手工打開網頁試試
相關文章:
1. javascript - npm下載的模塊不完整是什么問題?2. java - Spring事務回滾問題3. apache - 本地搭建wordpress權限問題4. c++ - 如何在python的阻塞的函數中獲取變量值5. node.js - 我想讓最后進入數據庫的數據,在前臺最先展示,如何做到?6. wordpress - Nginx中禁止訪問txt,robots.txt文件例外,規則該怎么寫?7. 剛放到服務器的項目出現這中錯誤,有高手指點嗎8. python - django 按日歸檔統計訂單求解9. python 操作mysql如何經量防止自己的程序在之后被惡意注入(說白了就是問一下python防注入的一些要點)10. mysql - 面試題:如何把login_log表轉換成last_login表?
