环境

win10,python3.7

方法

1.进入官网https://pytorch.org/,找到适合自己的pytorch版本,我的选择版本(如第一张图),复制"Run this Command"的两条命令。

2.打开cmd,输入刚才的两条命令进行安装(如第二张图)。

3.进入python进行测试(如第三张图)

import torch
print(torch.__version__) 

import torchvision
print(torchvision.__version__)  

不报错就说明成功。

 

pytorch CPU版本安装(无gpu)

 

pytorch CPU版本安装(无gpu)

pytorch CPU版本安装(无gpu)

 

 

相关文章:

  • 2021-11-10
  • 2021-10-20
  • 2021-08-21
  • 2021-12-21
  • 2022-12-23
  • 2021-11-17
  • 2021-12-29
  • 2021-08-25
猜你喜欢
  • 2021-06-28
  • 2022-12-23
  • 2021-11-24
  • 2021-11-09
  • 2022-12-23
  • 2021-11-16
  • 2022-12-23
相关资源
相似解决方案