1.问题1:Torch not compiled with CUDA enabled
先通过如下查询,cuda和pytorch版本不一致
import torch
print(torch.__version__) #显示Pytorch版本
print(torch.cuda.is_available()) #返回False为版本不匹配,报该错误;返回Ture,解决问题
2.cuda各个版本下载地址
1.问题1:Torch not compiled with CUDA enabled
先通过如下查询,cuda和pytorch版本不一致
import torch
print(torch.__version__) #显示Pytorch版本
print(torch.cuda.is_available()) #返回False为版本不匹配,报该错误;返回Ture,解决问题
2.cuda各个版本下载地址