check pytorch version and install

install pytorch with specific version :

conda install pytorch=0.1.10 -c soumith

pip install pytorch=0.1.10

check the version:

import torch

print(torch.__version__)

猜你喜欢

转载自blog.csdn.net/doublechenchenchen/article/details/81110683