1.首先在终端中输入python进入python交互式环境

2.接着输入

  1.  
    import torch
  2.  
    print(torch.__version__) #注意是双下划线

如图所示即可

查看pytorch的版本

相关文章: