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. 微信公眾號在線生成二維碼帶參數怎么搞?2. 微信開放平臺 - android 微信支付后點完成按鈕,后回調打開第三方頁面,屏幕閃動,求解決方法3. PHP單例模式4. javascript - 微信報redirect_uri參數錯誤5. angular.js - cordova做的app可以實現支付寶支付的功能嗎?該怎么實現呢?6. java - Android如何快速獲取視頻每秒縮略圖7. javascript - 釘釘的excel, word文件預覽是直接用的微軟的office web app,不犯法嗎?8. 我在centos容器里安裝docker,也就是在容器里安裝容器,報錯了?9. android - 類似微信朋友圈或者QQ空間說說那種點擊圖片放大,并且有放大縮小手勢,左右滑動圖片手勢效果10. win10系統 php安裝swoole擴展
