在Debian 10上安装火炬后获得细分故障

发布于 2025-02-02 23:33:03 字数 704 浏览 5 评论 0原文

使用Pytorch的官方 docs ,我使用此命令在我的debian 10服务器上使用此命令将其安装在我的debian 10服务器上:

 pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu

该安装似乎已经成功完成了:

Installing collected packages: typing-extensions, torch, pillow, numpy, torchvision, torchaudio
Successfully installed numpy-1.22.4 pillow-9.1.1 torch-1.11.0+cpu torchaudio-0.11.0+cpu torchvision-0.12.0+cpu typing-extensions-4.2.0

但是当我尝试使用python3 -c'导入火炬'我获得此错误时

分割故障

我想知道可能出了什么问题,我该如何解决此问题?

Using pytorch's official docs, I installed torch on my Debian 10 server using this command as root:

 pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu

The installation seem to have done successuflly:

Installing collected packages: typing-extensions, torch, pillow, numpy, torchvision, torchaudio
Successfully installed numpy-1.22.4 pillow-9.1.1 torch-1.11.0+cpu torchaudio-0.11.0+cpu torchvision-0.12.0+cpu typing-extensions-4.2.0

But When I try to import the library using python3 -c 'import torch' I get this error

Segmentation fault

I'm wondering what could be wrong and how can I troubleshoot this problem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文