问题描述:使用nvidia-smi命令出现NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running
1 cd /usr/src/ 2 3 ls
然后查看nvidia-xxx,xxx为版本号,记下
1 sudo apt-get install dkms 2 3 sudo dkms install -m nvidia -v xxx(你的nVidia版本号)