找回密码
 立即注册
软件设计/软件工程 2022-05-03 797 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
问题
我想用 conda 创建一个新环境。以前,我在代理后面工作,所以我在 .condarc 文件中设置它。但是现在,在家工作,即使我已经从 .condarc 中删除了与代理相关的行,当我尝试创建一个新环境时,它仍然会尝试连接到它。这是我的日志:
  1. > conda create -n my_env python=3.6 ipykernel -vvv

  2. DEBUG conda.gateways.logging:set_verbosity(231): verbosity set to 3
  3. DEBUG conda.core.solve:solve_final_state(223): solving prefix D:\Miniconda3\envs\my_env
  4.   specs_to_remove: frozenset()
  5.   specs_to_add: frozenset({MatchSpec("python=3.6"), MatchSpec("ipykernel")})
  6.   prune: <auxlib._Null object at 0x000001E03753C808>
  7. Collecting package metadata (current_repodata.json): ...working... TRACE conda.gateways.disk.test:file_path_is_writable(25): checking path is writable D:\Miniconda3\pkgs\urls.txt
  8. DEBUG conda.core.package_cache_data:_check_writable(259): package cache directory 'D:\Miniconda3\pkgs' writable: True
  9. DEBUG conda.core.subdir_data:_load(241): Local cache timed out for https://repo.anaconda.com/pkgs/main/win-64/current_repodata.json at D:\Miniconda3\pkgs\cache\9b8cd901.json
  10. DEBUG conda.core.subdir_data:_load(241): Local cache timed out for https://repo.anaconda.com/pkgs/r/win-64/current_repodata.json at D:\Miniconda3\pkgs\cache\a9664645.json
  11. DEBUG conda.core.subdir_data:_load(241): Local cache timed out for https://conda.anaconda.org/conda-forge/win-64/current_repodata.json at D:\Miniconda3\pkgs\cache\f7597cf7.json
  12. DEBUG conda.core.subdir_data:_load(241): Local cache timed out for https://conda.anaconda.org/conda-forge/noarch/current_repodata.json at D:\Miniconda3\pkgs\cache\62c98390.json
  13. DEBUG conda.core.subdir_data:_load(241): Local cache timed out for https://repo.anaconda.com/pkgs/msys2/win-64/current_repodata.json at D:\Miniconda3\pkgs\cache\1394f696.json
  14. DEBUG conda.core.subdir_data:_load(241): Local cache timed out for https://repo.anaconda.com/pkgs/main/noarch/current_repodata.json at D:\Miniconda3\pkgs\cache\b35683e8.json
  15. DEBUG conda.core.subdir_data:_load(241): Local cache timed out for https://repo.anaconda.com/pkgs/r/noarch/current_repodata.json at D:\Miniconda3\pkgs\cache\227b7582.json
  16. DEBUG conda.core.subdir_data:_load(241): Local cache timed out for https://repo.anaconda.com/pkgs/msys2/noarch/current_repodata.json at D:\Miniconda3\pkgs\cache\e915db84.json
  17. DEBUG urllib3.connectionpool:_new_conn(959): Starting new HTTPS connection (1): repo.anaconda.com:443
  18. DEBUG urllib3.connectionpool:_new_conn(959): Starting new HTTPS connection (1): conda.anaconda.org:443
  19. DEBUG urllib3.connectionpool:_new_conn(959): Starting new HTTPS connection (1): repo.anaconda.com:443
  20. DEBUG urllib3.connectionpool:_new_conn(959): Starting new HTTPS connection (1): conda.anaconda.org:443
  21. DEBUG urllib3.connectionpool:_new_conn(959): Starting new HTTPS connection (1): repo.anaconda.com:443
  22. DEBUG urllib3.connectionpool:_new_conn(959): Starting new HTTPS connection (1): repo.anaconda.com:443
  23. DEBUG urllib3.connectionpool:_new_conn(959): Starting new HTTPS connection (1): repo.anaconda.com:443
  24. DEBUG urllib3.connectionpool:_new_conn(959): Starting new HTTPS connection (1): repo.anaconda.com:443
  25. DEBUG urllib3.util.retry:increment(438): Incremented Retry for (url='/pkgs/msys2/noarch/current_repodata.json'): Retry(total=2, connect=None, read=None, redirect=None, status=None)
  26. DEBUG urllib3.util.retry:increment(438): Incremented Retry for (url='/pkgs/main/win-64/current_repodata.json'): Retry(total=2, connect=None, read=None, redirect=None, status=None)
  27. DEBUG urllib3.util.retry:increment(438): Incremented Retry for (url='/pkgs/msys2/win-64/current_repodata.json'): Retry(total=2, connect=None, read=None, redirect=None, status=None)
  28. DEBUG urllib3.util.retry:increment(438): Incremented Retry for (url='/pkgs/main/noarch/current_repodata.json'): Retry(total=2, connect=None, read=None, redirect=None, status=None)
  29. DEBUG urllib3.util.retry:increment(438): Incremented Retry for (url='/pkgs/r/noarch/current_repodata.json'): Retry(total=2, connect=None, read=None, redirect=None, status=None)
  30. DEBUG urllib3.util.retry:increment(438): Incremented Retry for (url='/conda-forge/win-64/current_repodata.json'): Retry(total=2, connect=None, read=None, redirect=None, status=None)
  31. DEBUG urllib3.util.retry:increment(438): Incremented Retry for (url='/pkgs/r/win-64/current_repodata.json'): Retry(total=2, connect=None, read=None, redirect=None, status=None)
  32. WARNING urllib3.connectionpool:urlopen(745): Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x000001E038DE3148>, 'Connection to 172.31.219.30 timed out. (connect timeout=9.15)')': /pkgs/r/win-64/current_repodata.json
  33. WARNING urllib3.connectionpool:urlopen(745): Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x000001E038DEB7C8>, 'Connection to 172.31.219.30 timed out. (connect timeout=9.15)')': /pkgs/msys2/noarch/current_repodata.json
  34. WARNING urllib3.connectionpool:urlopen(745): Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x000001E03A137908>, 'Connection to 172.31.219.30 timed out. (connect timeout=9.15)')': /pkgs/main/win-64/current_repodata.json
  35. WARNING urllib3.connectionpool:urlopen(745): Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x000001E038DE3DC8>, 'Connection to 172.31.219.30 timed out. (connect timeout=9.15)')': /pkgs/msys2/win-64/current_repodata.json
  36. WARNING urllib3.connectionpool:urlopen(745): Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x000001E038DEBAC8>, 'Connection to 172.31.219.30 timed out. (connect timeout=9.15)')': /pkgs/main/noarch/current_repodata.json
  37. WARNING urllib3.connectionpool:urlopen(745): Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x000001E038DEB2C8>, 'Connection to 172.31.219.30 timed out. (connect timeout=9.15)')': /pkgs/r/noarch/current_repodata.json
  38. WARNING urllib3.connectionpool:urlopen(745): Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x000001E03A137D48>, 'Connection to 172.31.219.30 timed out. (connect timeout=9.15)')': /conda-forge/win-64/current_repodata.json
  39. DEBUG urllib3.connectionpool:_new_conn(959): Starting new HTTPS connection (2): conda.anaconda.org:443
  40. DEBUG urllib3.connectionpool:_new_conn(959): Starting new HTTPS connection (2): repo.anaconda.com:443
  41. DEBUG urllib3.connectionpool:_new_conn(959): Starting new HTTPS connection (2): repo.anaconda.com:443
  42. DEBUG urllib3.connectionpool:_new_conn(959): Starting new HTTPS connection (2): repo.anaconda.com:443
  43. DEBUG urllib3.connectionpool:_new_conn(959): Starting new HTTPS connection (2): repo.anaconda.com:443
  44. DEBUG urllib3.connectionpool:_new_conn(959): Starting new HTTPS connection (2): repo.anaconda.com:443
  45. DEBUG urllib3.connectionpool:_new_conn(959): Starting new HTTPS connection (2): repo.anaconda.com:443
  46. DEBUG urllib3.util.retry:increment(438): Incremented Retry for (url='/conda-forge/noarch/current_repodata.json'): Retry(total=2, connect=None, read=None, redirect=None, status=None)
  47. WARNING urllib3.connectionpool:urlopen(745): Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x000001E038DE3788>, 'Connection to 172.31.219.30 timed out. (connect timeout=9.15)')': /conda-forge/noarch/current_repodata.json
  48. DEBUG urllib3.connectionpool:_new_conn(959): Starting new HTTPS connection (2): conda.anaconda.org:443
  49. DEBUG urllib3.util.retry:increment(438): Incremented Retry for (url='/conda-forge/win-64/current_repodata.json'): Retry(total=1, connect=None, read=None, redirect=None, status=None)
  50. DEBUG urllib3.util.retry:increment(438): Incremented Retry for (url='/pkgs/r/win-64/current_repodata.json'): Retry(total=1, connect=None, read=None, redirect=None, status=None)
  51. DEBUG urllib3.util.retry:increment(438): Incremented Retry for (url='/pkgs/msys2/noarch/current_repodata.json'): Retry(total=1, connect=None, read=None, redirect=None, status=None)
  52. DEBUG urllib3.util.retry:increment(438): Incremented Retry for (url='/pkgs/main/win-64/current_repodata.json'): Retry(total=1, connect=None, read=None, redirect=None, status=None)
  53. DEBUG urllib3.util.retry:increment(438): Incremented Retry for (url='/pkgs/msys2/win-64/current_repodata.json'): Retry(total=1, connect=None, read=None, redirect=None, status=None)
  54. DEBUG urllib3.util.retry:increment(438): Incremented Retry for (url='/pkgs/main/noarch/current_repodata.json'): Retry(total=1, connect=None, read=None, redirect=None, status=None)
  55. DEBUG urllib3.util.retry:increment(438): Incremented Retry for (url='/pkgs/r/noarch/current_repodata.json'): Retry(total=1, connect=None, read=None, redirect=None, status=None)
  56. DEBUG urllib3.util.retry:increment(438): Incremented Retry for (url='/conda-forge/noarch/current_repodata.json'): Retry(total=1, connect=None, read=None, redirect=None, status=None)
  57. WARNING urllib3.connectionpool:urlopen(745): Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x000001E038DF5808>, 'Connection to 172.31.219.30 timed out. (connect timeout=9.15)')': /conda-forge/win-64/current_repodata.json
  58. DEBUG urllib3.connectionpool:_new_conn(959): Starting new HTTPS connection (3): conda.anaconda.org:443
  59. WARNING urllib3.connectionpool:urlopen(745): Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x000001E038DF57C8>, 'Connection to 172.31.219.30 timed out. (connect timeout=9.15)')': /pkgs/r/win-64/current_repodata.json
  60. DEBUG urllib3.connectionpool:_new_conn(959): Starting new HTTPS connection (3): repo.anaconda.com:443
  61. WARNING urllib3.connectionpool:urlopen(745): Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x000001E038DF26C8>, 'Connection to 172.31.219.30 timed out. (connect timeout=9.15)')': /pkgs/msys2/noarch/current_repodata.json
  62. DEBUG urllib3.connectionpool:_new_conn(959): Starting new HTTPS connection (3): repo.anaconda.com:443
  63. WARNING urllib3.connectionpool:urlopen(745): Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x000001E038DF2AC8>, 'Connection to 172.31.219.30 timed out. (connect timeout=9.15)')': /pkgs/main/win-64/current_repodata.json
  64. DEBUG urllib3.connectionpool:_new_conn(959): Starting new HTTPS connection (3): repo.anaconda.com:443
  65. WARNING urllib3.connectionpool:urlopen(745): Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x000001E038DF2EC8>, 'Connection to 172.31.219.30 timed out. (connect timeout=9.15)')': /pkgs/msys2/win-64/current_repodata.json
  66. DEBUG urllib3.connectionpool:_new_conn(959): Starting new HTTPS connection (3): repo.anaconda.com:443
  67. WARNING urllib3.connectionpool:urlopen(745): Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x000001E038DF5248>, 'Connection to 172.31.219.30 timed out. (connect timeout=9.15)')': /pkgs/main/noarch/current_repodata.json
  68. DEBUG urllib3.connectionpool:_new_conn(959): Starting new HTTPS connection (3): repo.anaconda.com:443
  69. WARNING urllib3.connectionpool:urlopen(745): Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x000001E038DF5588>, 'Connection to 172.31.219.30 timed out. (connect timeout=9.15)')': /pkgs/r/noarch/current_repodata.json
  70. DEBUG urllib3.connectionpool:_new_conn(959): Starting new HTTPS connection (3): repo.anaconda.com:443
  71. WARNING urllib3.connectionpool:urlopen(745): Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x000001E038DF5B48>, 'Connection to 172.31.219.30 timed out. (connect timeout=9.15)')': /conda-forge/noarch/current_repodata.json
  72. DEBUG urllib3.connectionpool:_new_conn(959): Starting new HTTPS connection (3): conda.anaconda.org:443
  73. DEBUG urllib3.util.retry:increment(438): Incremented Retry for (url='/conda-forge/win-64/current_repodata.json'): Retry(total=0, connect=None, read=None, redirect=None, status=None)
  74. DEBUG urllib3.util.retry:increment(438): Incremented Retry for (url='/pkgs/r/win-64/current_repodata.json'): Retry(total=0, connect=None, read=None, redirect=None, status=None)
  75. DEBUG urllib3.util.retry:increment(438): Incremented Retry for (url='/pkgs/msys2/noarch/current_repodata.json'): Retry(total=0, connect=None, read=None, redirect=None, status=None)
  76. DEBUG urllib3.util.retry:increment(438): Incremented Retry for (url='/pkgs/main/win-64/current_repodata.json'): Retry(total=0, connect=None, read=None, redirect=None, status=None)
  77. DEBUG urllib3.util.retry:increment(438): Incremented Retry for (url='/pkgs/msys2/win-64/current_repodata.json'): Retry(total=0, connect=None, read=None, redirect=None, status=None)
  78. DEBUG urllib3.util.retry:increment(438): Incremented Retry for (url='/pkgs/main/noarch/current_repodata.json'): Retry(total=0, connect=None, read=None, redirect=None, status=None)
  79. DEBUG urllib3.util.retry:increment(438): Incremented Retry for (url='/pkgs/r/noarch/current_repodata.json'): Retry(total=0, connect=None, read=None, redirect=None, status=None)
  80. DEBUG urllib3.util.retry:increment(438): Incremented Retry for (url='/conda-forge/noarch/current_repodata.json'): Retry(total=0, connect=None, read=None, redirect=None, status=None)
  81. WARNING urllib3.connectionpool:urlopen(745): Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x000001E038DFEAC8>, 'Connection to 172.31.219.30 timed out. (connect timeout=9.15)')': /conda-forge/win-64/current_repodata.json
  82. DEBUG urllib3.connectionpool:_new_conn(959): Starting new HTTPS connection (4): conda.anaconda.org:443
  83. WARNING urllib3.connectionpool:urlopen(745): Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x000001E038DFEE08>, 'Connection to 172.31.219.30 timed out. (connect timeout=9.15)')': /pkgs/r/win-64/current_repodata.json
  84. DEBUG urllib3.connectionpool:_new_conn(959): Starting new HTTPS connection (4): repo.anaconda.com:443
  85. WARNING urllib3.connectionpool:urlopen(745): Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x000001E038E03288>, 'Connection to 172.31.219.30 timed out. (connect timeout=9.15)')': /pkgs/main/win-64/current_repodata.json
  86. WARNING urllib3.connectionpool:urlopen(745): Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x000001E038E03088>, 'Connection to 172.31.219.30 timed out. (connect timeout=9.15)')': /pkgs/msys2/noarch/current_repodata.json
  87. WARNING urllib3.connectionpool:urlopen(745): Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x000001E038E03488>, 'Connection to 172.31.219.30 timed out. (connect timeout=9.15)')': /pkgs/msys2/win-64/current_repodata.json
  88. WARNING urllib3.connectionpool:urlopen(745): Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x000001E038E03688>, 'Connection to 172.31.219.30 timed out. (connect timeout=9.15)')': /pkgs/main/noarch/current_repodata.json
  89. WARNING urllib3.connectionpool:urlopen(745): Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x000001E038E03848>, 'Connection to 172.31.219.30 timed out. (connect timeout=9.15)')': /pkgs/r/noarch/current_repodata.json
  90. WARNING urllib3.connectionpool:urlopen(745): Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x000001E038E03A88>, 'Connection to 172.31.219.30 timed out. (connect timeout=9.15)')': /conda-forge/noarch/current_repodata.json
  91. DEBUG urllib3.connectionpool:_new_conn(959): Starting new HTTPS connection (4): repo.anaconda.com:443
  92. DEBUG urllib3.connectionpool:_new_conn(959): Starting new HTTPS connection (4): repo.anaconda.com:443
  93. DEBUG urllib3.connectionpool:_new_conn(959): Starting new HTTPS connection (4): repo.anaconda.com:443
  94. DEBUG urllib3.connectionpool:_new_conn(959): Starting new HTTPS connection (4): repo.anaconda.com:443
  95. DEBUG urllib3.connectionpool:_new_conn(959): Starting new HTTPS connection (4): repo.anaconda.com:443
  96. DEBUG urllib3.connectionpool:_new_conn(959): Starting new HTTPS connection (4): conda.anaconda.org:443
  97. failed
  98. Traceback (most recent call last):
  99.   File "D:\Miniconda3\lib\site-packages\urllib3\connection.py", line 157, in _new_conn
  100.     (self._dns_host, self.port), self.timeout, **extra_kw
  101.   File "D:\Miniconda3\lib\site-packages\urllib3\util\connection.py", line 84, in create_connection
  102.     raise err
  103.   File "D:\Miniconda3\lib\site-packages\urllib3\util\connection.py", line 74, in create_connection
  104.     sock.connect(sa)
  105. socket.timeout: timed out

  106. During handling of the above exception, another exception occurred:

  107. Traceback (most recent call last):
  108.   File "D:\Miniconda3\lib\site-packages\urllib3\connectionpool.py", line 662, in urlopen
  109.     self._prepare_proxy(conn)
  110.   File "D:\Miniconda3\lib\site-packages\urllib3\connectionpool.py", line 948, in _prepare_proxy
  111.     conn.connect()
  112.   File "D:\Miniconda3\lib\site-packages\urllib3\connection.py", line 300, in connect
  113.     conn = self._new_conn()
  114.   File "D:\Miniconda3\lib\site-packages\urllib3\connection.py", line 164, in _new_conn
  115.     % (self.host, self.timeout),
  116. urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.VerifiedHTTPSConnection object at 0x000001E038E0A208>, 'Connection to 172.31.219.30 timed out. (connect timeout=9.15)')

  117. During handling of the above exception, another exception occurred:

  118. Traceback (most recent call last):
  119.   File "D:\Miniconda3\lib\site-packages\requests\adapters.py", line 449, in send
  120.     timeout=timeout
  121.   File "D:\Miniconda3\lib\site-packages\urllib3\connectionpool.py", line 760, in urlopen
  122.     **response_kw
  123.   File "D:\Miniconda3\lib\site-packages\urllib3\connectionpool.py", line 760, in urlopen
  124.     **response_kw
  125.   File "D:\Miniconda3\lib\site-packages\urllib3\connectionpool.py", line 760, in urlopen
  126.     **response_kw
  127.   File "D:\Miniconda3\lib\site-packages\urllib3\connectionpool.py", line 720, in urlopen
  128.     method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  129.   File "D:\Miniconda3\lib\site-packages\urllib3\util\retry.py", line 436, in increment
  130.     raise MaxRetryError(_pool, url, error or ResponseError(cause))
  131. urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='conda.anaconda.org', port=443): Max retries exceeded with url: /conda-forge/win-64/current_repodata.json (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x000001E038E0A208>, 'Connection to 172.31.219.30 timed out. (connect timeout=9.15)'))

  132. During handling of the above exception, another exception occurred:

  133. Traceback (most recent call last):
  134.   File "D:\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 485, in fetch_repodata_remote_request
  135.     timeout=timeout)
  136.   File "D:\Miniconda3\lib\site-packages\requests\sessions.py", line 546, in get
  137.     return self.request('GET', url, **kwargs)
  138.   File "D:\Miniconda3\lib\site-packages\requests\sessions.py", line 533, in request
  139.     resp = self.send(prep, **send_kwargs)
  140.   File "D:\Miniconda3\lib\site-packages\requests\sessions.py", line 646, in send
  141.     r = adapter.send(request, **kwargs)
  142.   File "D:\Miniconda3\lib\site-packages\requests\adapters.py", line 504, in send
  143.     raise ConnectTimeout(e, request=request)
  144. requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='conda.anaconda.org', port=443): Max retries exceeded with url: /conda-forge/win-64/current_repodata.json (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x000001E038E0A208>, 'Connection to 172.31.219.30 timed out. (connect timeout=9.15)'))

  145. During handling of the above exception, another exception occurred:

  146. Traceback (most recent call last):
  147.   File "D:\Miniconda3\lib\site-packages\conda\exceptions.py", line 1079, in __call__
  148.     return func(*args, **kwargs)
  149.   File "D:\Miniconda3\lib\site-packages\conda\cli\main.py", line 84, in _main
  150.     exit_code = do_call(args, p)
  151.   File "D:\Miniconda3\lib\site-packages\conda\cli\conda_argparse.py", line 82, in do_call
  152.     return getattr(module, func_name)(args, parser)
  153.   File "D:\Miniconda3\lib\site-packages\conda\cli\main_create.py", line 37, in execute
  154.     install(args, parser, 'create')
  155.   File "D:\Miniconda3\lib\site-packages\conda\cli\install.py", line 265, in install
  156.     should_retry_solve=(_should_retry_unfrozen or repodata_fn != repodata_fns[-1]),
  157.   File "D:\Miniconda3\lib\site-packages\conda\core\solve.py", line 117, in solve_for_transaction
  158.     should_retry_solve)
  159.   File "D:\Miniconda3\lib\site-packages\conda\core\solve.py", line 158, in solve_for_diff
  160.     force_remove, should_retry_solve)
  161.   File "D:\Miniconda3\lib\site-packages\conda\core\solve.py", line 262, in solve_final_state
  162.     ssc = self._collect_all_metadata(ssc)
  163.   File "D:\Miniconda3\lib\site-packages\conda\common\io.py", line 88, in decorated
  164.     return f(*args, **kwds)
  165.   File "D:\Miniconda3\lib\site-packages\conda\core\solve.py", line 415, in _collect_all_metadata
  166.     index, r = self._prepare(prepared_specs)
  167.   File "D:\Miniconda3\lib\site-packages\conda\core\solve.py", line 1011, in _prepare
  168.     self.subdirs, prepared_specs, self._repodata_fn)
  169.   File "D:\Miniconda3\lib\site-packages\conda\core\index.py", line 228, in get_reduced_index
  170.     repodata_fn=repodata_fn)
  171.   File "D:\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 105, in query_all
  172.     result = tuple(concat(executor.map(subdir_query, channel_urls)))
  173.   File "D:\Miniconda3\lib\concurrent\futures\_base.py", line 598, in result_iterator
  174.     yield fs.pop().result()
  175.   File "D:\Miniconda3\lib\concurrent\futures\_base.py", line 435, in result
  176.     return self.__get_result()
  177.   File "D:\Miniconda3\lib\concurrent\futures\_base.py", line 384, in __get_result
  178.     raise self._exception
  179.   File "D:\Miniconda3\lib\concurrent\futures\thread.py", line 57, in run
  180.     result = self.fn(*self.args, **self.kwargs)
  181.   File "D:\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 98, in <lambda>
  182.     package_ref_or_match_spec))
  183.   File "D:\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 110, in query
  184.     self.load()
  185.   File "D:\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 174, in load
  186.     _internal_state = self._load()
  187.   File "D:\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 248, in _load
  188.     repodata_fn=self.repodata_fn)
  189.   File "D:\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 595, in fetch_repodata_remote_request
  190.     caused_by=e)
  191. conda.exceptions.CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/conda-forge/win-64/current_repodata.json>
  192. Elapsed: -

  193. An HTTP error occurred when trying to retrieve this URL.
  194. HTTP errors are often intermittent, and a simple retry will get you on your way.
  195. 'https://conda.anaconda.org/conda-forge/win-64'
复制代码

感谢大家抽出宝贵的时间。

更新:

如果您运行 conda info --all ,则代理值为“”:
  1. HTTPS_PROXY: <set>
  2. HTTP_PROXY: <set>
复制代码

当使用 conda config --remove-key proxy_servers.http 和 conda config --remove-key proxy_servers.https 它说这些键不存在(因为它们不存在,我已经删除了它们来自 .condarc )。我已经设置它们并运行这些命令,它们将从 .condarc 中删除,但问题仍然存在。

回答
不要忘记检查 windows 环境变量。

可能会导致错误。





上一篇:如何使用 CSS 为容器中的特定单词着色
下一篇:Visual Studio Online - 无法解析版本描述符 BranchName