查看安装完的 pytorch 和 torchvision 版本

打开终端,如果安装在虚拟环境中,切换进虚拟环境中,先输入

python

进入 python 环境中 导入 pytorch 包,查看版本

import torch
torch.__version__

导入 torchvision 包,查看版本

import torchvision
torchvision.__version__

https://img-blog.csdnimg.cn/20200506083731562.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2Nvb3Blcmxpcg==,size_16,color_FFFFFF,t_70

如果对你有用的话,请给我点赞、留言吧 如需转载,请注明出处,否则将追究法律责任。 https://blog.csdn.net/cooperlir/article/details/105943255