2
数学库
torch安装有问题,安装torch-2.3.0+das.opt1.dtk24042-cp311-cp311-manylinux_2_28_x86_64.whl显示报错下面的内容
2024-10-08 10:17:54
114

(base) [root@localhost local]# pip install torch-2.3.0+das.opt1.dtk24042-cp311-cp311-manylinux_2_28_x86_64.whl
Processing ./torch-2.3.0+das.opt1.dtk24042-cp311-cp311-manylinux_2_28_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 0x7f10bcf1e8d0>: Failed to establish a new connection: [Errno -2] 未知的名称或服务')': /simple/filelock/
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 0x7f10bcf1cd10>: Failed to establish a new connection: [Errno -2] 未知的名称或服务')': /simple/filelock/
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 0x7f10bcf1d810>: Failed to establish a new connection: [Errno -2] 未知的名称或服务')': /simple/filelock/
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 0x7f10bcf1fe50>: Failed to establish a new connection: [Errno -2] 未知的名称或服务')': /simple/filelock/
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 0x7f10bcf0dfd0>: Failed to establish a new connection: [Errno -2] 未知的名称或服务')': /simple/filelock/
INFO: pip is looking at multiple versions of torch to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement filelock (from torch) (from versions: none)
ERROR: No matching distribution found for filelock

全部评论(3)
只看楼主
A
ANYA
1楼
请检查下网络是否通畅,看起来是网络原因导致一些依赖库无法安装
2024/10/8
网
网友20Zf1I
回复 @ANYA

离线安装的时候 安装好后 又出现啦>>> import torch

Traceback (most recent call last):

File "<stdin>", line 1, in <module>

File "/root/miniconda3/lib/python3.11/site-packages/torch/__init__.py", line 239, in <module>

from torch._C import * # noqa: F403

^^^^^^^^^^^^^^^^^^^^^^

ImportError: /usr/lib64/libgobject-2.0.so.0: symbol ffi_type_uint32 version LIBFFI_BASE_7.0 not defined in 这个问题
2024/10/8
A
ANYA
回复 @ANYA
您可以按这个格式,大致描述一下您的操作步骤,我们根据您的部署流程看下问题:https://forum.sourcefind.cn/thread/599
2024/10/8
没有更多内容了
--
楼主
Level.1
0 帖子
楼主热帖
暂无数据