1.打开你的Anaconda
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple torch==1.6.0 torchvision==0.7.0 -f https://download.pytorch.org/whl/torch_stable.html
很快就能安装完毕
import torch
torch.__version__
torch.cuda.is_available()
参考链接:
参考该作者的安装办法,都一样