在服务器上跑代码,出现如下错误:
RuntimeError: The NVIDIA driver on your system is too old (found version 10010). Please update your GPU driver by downloading and installing a new version from the URL: http://www.nvidia.com/Download/index.aspx Alternatively, go to: https://pytorch.org to install a PyTorch version that has been compiled with your version of the CUDA driver.
1.查看cuda版本:输入命令nvidia-smi
可以看到服务器上cuda版本为10.1
2. 查看安装的torch所要求的cuda版本:print(torch.version.cuda)
可以看到torch所要求的cuda是10.2
3.查看torch 和cuda对应版本的要求
4.降低服务器torch版本(总比升cuda来的容易 哈哈哈)