ubuntu下导入torch报错

>>> import torch
Illegal instruction (core dumped)

 

安装pytorch

去pytorch官网下载python版本对应的版本的pytorch的wheel文件

https://pytorch.org/previous-versions/

下载完成后,pip3 install安装wheel文件

 

安装torchvision

pip3 install torchvision

 

导入import torch成功

相关文章:

  • 2021-06-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-17
  • 2022-12-23
  • 2021-12-03
猜你喜欢
  • 2021-12-29
  • 2021-08-25
  • 2021-09-01
  • 2021-06-04
  • 2021-12-25
  • 2022-12-23
  • 2021-12-17
相关资源
相似解决方案