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

问题描述:使用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命令查看信息啦

posted @ 2020-04-02 08:53  nanmi  阅读(8200)  评论(0编辑  收藏  举报