1.输入cmd进入终端
2.输入python,进入python交互环境,然后输入下面两行代码
>>>python
>>>import torch
>>>torch.__version__
例如:windows系统
例如:ubuntu系统
1.输入cmd进入终端
2.输入python,进入python交互环境,然后输入下面两行代码
>>>python
>>>import torch
>>>torch.__version__
例如:windows系统
例如:ubuntu系统