2016-09-13 73 views
0

Conda在CentOS上花費太多時間。我運行命令conda --debug update conda。這裏是日誌不知道爲什麼它需要太多的時間。Conda更新在Centos上太多時間

DEBUG:conda.fetch:channel_urls=OrderedDict([('https://repo.continuum.io/pkgs/free/linux-64/', ('defaults', 1)), ('https://repo.continuum.io/pkgs/free/noarch/', ('defaults', 1)), ('https://repo.continuum.io/pkgs/pro/linux-64/', ('defaults', 1)), ('https://repo.continuum.io/pkgs/pro/noarch/', ('defaults', 1))]) 
Fetching package metadata ...INFO:stdoutlog:Fetching package metadata ... 
DEBUG:requests.packages.urllib3.util.retry:Converted retries value: 3 -> Retry(total=3, connect=None, read=None, redirect=None) 
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): repo.continuum.io 
DEBUG:requests.packages.urllib3.util.retry:Incremented Retry for (url='/pkgs/free/linux-64/repodata.json.bz2'): Retry(total=2, connect=None, read=None, redirect=None) 
WARNING:requests.packages.urllib3.connectionpool:Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f625c420d10>: Failed to establish a new connection: [Errno 110] Connection timed out',)': /pkgs/free/linux-64/repodata.json.bz2 
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (2): repo.continuum.io 
DEBUG:requests.packages.urllib3.util.retry:Incremented Retry for (url='/pkgs/free/linux-64/repodata.json.bz2'): Retry(total=1, connect=None, read=None, redirect=None) 
WARNING:requests.packages.urllib3.connectionpool:Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f625c420e90>: Failed to establish a new connection: [Errno 110] Connection timed out',)': /pkgs/free/linux-64/repodata.json.bz2 
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (3): repo.continuum.io 
DEBUG:requests.packages.urllib3.util.retry:Incremented Retry for (url='/pkgs/free/linux-64/repodata.json.bz2'): Retry(total=0, connect=None, read=None, redirect=None) 
WARNING:requests.packages.urllib3.connectionpool:Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f625dc08050>: Failed to establish a new connection: [Errno 110] Connection timed out',)': /pkgs/free/linux-64/repodata.json.bz2 
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (4): repo.continuum.io 

回答

0

這個問題是否爲您解決?調試輸出顯示的問題是,您無法訪問https://repo.continuum.io/pkgs/free/linux-64/repodata.json.bz2 - 這只是一個300KB的文件。但問題不是下載時間,而是您的客戶無法從該URL獲得響應。我在Continuum工作,我不知道任何服務中斷,這意味着repo.continuum.io在過去的24小時內沒有任何時間可用,但是我不是操作團隊的一部分。我會將該URL放入您的網絡瀏覽器或手機中,看看它是否可以爲您解決。如果確實如此,那麼在執行conda update命令的CentOS服務器上可能會出現問題。您始終可以嘗試使用wgetcurl命令查看這些URL是否成功解析了URL。讓我們知道這些建議是否有助於您的工作,或者至少可以更好地找出問題的根源。

0

由此看來,問題不是下載花費太多時間,而是您無法從URL獲得響應。最可能的原因是因爲您的防火牆配置不正確,正如Ian建議的,看看您是否可以通過其他措施解決URL,甚至可能通過不同的計算機/ VM。