0

Conda 在 CentOS 上花费了太多时间。我正在运行命令 conda --debug update conda。这是日志,不确定为什么要花费太多时间。

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
4

2 回答 2

0

看起来,问题不在于下载花费太多时间,而是您无法从 URL 获得响应。最可能的原因是您的防火墙配置不正确,正如 Ian 建议的那样,看看您是否可以通过不同的措施解析 URL,甚至可能通过不同的机器/VM。

于 2016-09-13T12:42:04.187 回答
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。让我们知道这些建议是否有助于您使其正常工作或至少更好地确定问题的根源。

于 2016-09-13T12:15:39.907 回答