在Debian 10上安装火炬后获得细分故障
使用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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论