赞
踩
conda install pytorch==1.7.0
安装时相关错误
Collecting package metadata (current_repodata.json): failed # >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<< Traceback (most recent call last): File "/opt/conda/lib/python3.6/site-packages/urllib3/connection.py", line 157, in _new_conn (self._dns_host, self.port), self.timeout, **extra_kw File "/opt/conda/lib/python3.6/site-packages/urllib3/util/connection.py", line 84, in create_connection raise err File "/opt/conda/lib/python3.6/site-packages/urllib3/util/connection.py", line 74, in create_connection sock.connect(sa) socket.timeout: timed out During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/conda/lib/python3.6/site-packages/urllib3/connectionpool.py", line 672, in urlopen chunked=chunked, File "/opt/conda/lib/python3.6/site-packages/urllib3/connectionpool.py", line 376, in _make_request self._validate_conn(conn) File "/opt/conda/lib/python3.6/site-packages/urllib3/connectionpool.py", line 994, in _validate_conn conn.connect() File "/opt/conda/lib/python3.6/site-packages/urllib3/connection.py", line 334, in connect conn = self._new_conn() File "/opt/conda/lib/python3.6/site-packages/urllib3/connection.py", line 164, in _new_conn % (self.host, self.timeout), urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.VerifiedHTTPSConnection object at 0x7f6b2d9ce358>, 'Connection to repo.anaconda.com timed out. (connect timeout=9.15)') During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/conda/lib/python3.6/site-packages/requests/adapters.py", line 449, in send timeout=timeout File "/opt/conda/lib/python3.6/site-packages/urllib3/connectionpool.py", line 760, in urlopen **response_kw File "/opt/conda/lib/python3.6/site-packages/urllib3/connectionpool.py", line 760, in urlopen **response_kw File "/opt/conda/lib/python3.6/site-packages/urllib3/connectionpool.py", line 760, in urlopen **response_kw File "/opt/conda/lib/python3.6/site-packages/urllib3/connectionpool.py", line 720, in urlopen method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] File "/opt/conda/lib/python3.6/site-packages/urllib3/util/retry.py", line 436, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='repo.anaconda.com', port=443): Max retries exceeded with url: /pkgs/main/linux-64/current_repodata.json (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f6b2d9ce358>, 'Connection to repo.anaconda.com timed out. (connect timeout=9.15)'))
解决方案:遇到这个问题,一定先试一下更新conda库!!!!
conda update --all
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。