有N卡但是nvidia-smi命令不显示信息出现NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA d

问题描述:使用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版本号)

然后就可以用nvidia-smi命令查看信息啦

上一篇:Linux命令之top、nvidia-smi


下一篇:ubuntu 16.04 安装与配置Anaconda3