如何在 ubuntu 16.04lts 上安装 pytorch?

如何在 ubuntu 16.04lts 上安装 pytorch?

我尝试在 ubuntu 16.04 上安装 pytorch,一切运行正常,但是当我激活 pytorch_awesome 并将 python 放入 import torch 时,它显示错误 (pytorch-awesome) linux@ubuntu:~/pytorch_awesome$ python

Python 3.5.2 (default, Jul 17 2020, 14:04:10) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named 'torch'

我如何导入 torch 以及如何成功安装 pytorch 并检查它是否已安装?

相关内容