1
先导杯大赛
安装fairseq依赖时,疑似网络错误
2023-10-26 09:19:53
160

在参照这里(https://developer.hpccube.com/codes/aicomponent/fairseq/-/tree/dtk22.10.1-py38-torch1.10-fairseq0.10.2)安装fairseq时,遇到安装torch时始终失败的问题。报错如下:

$ pip3 install torch-1.10.0a0+git2040069.dtk2210-cp38-cp38-manylinux2014_x86_64.whl
Defaulting to user installation because normal site-packages is not writeable
Processing ./torch-1.10.0a0+git2040069.dtk2210-cp38-cp38-manylinux2014_x86_64.whl
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x2b5bd9b2f130>: Failed to establish a new connection: [Errno 101] Network is unreachable')': /simple/typing-extensions/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x2b5bd9b2fe20>: Failed to establish a new connection: [Errno 101] Network is unreachable')': /simple/typing-extensions/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x2b5bd9b2fe50>: Failed to establish a new connection: [Errno 101] Network is unreachable')': /simple/typing-extensions/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x2b5bd9b2fac0>: Failed to establish a new connection: [Errno 101] Network is unreachable')': /simple/typing-extensions/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x2b5bd9b2f550>: Failed to establish a new connection: [Errno 101] Network is unreachable')': /simple/typing-extensions/
ERROR: Could not find a version that satisfies the requirement typing-extensions (from torch) (from versions: none)
ERROR: No matching distribution found for typing-extensions

想请教下是不是我这边少了什么步骤,没找到相关文档。 感谢帮助。

全部评论(1)
只看楼主
网
网友ALhEmL
楼主
1楼
看起来只是服务器网络环境差异问题。 切到清华源之后可用了
2023/10/26
没有更多内容了
--
楼主
Level.1
0 帖子
楼主热帖
暂无数据