1 cd /usr/src/ 2 3 ls
1 sudo apt-get install dkms 2 3 sudo dkms install -m nvidia -v xxx(你的nVidia版本号)
有N卡但是nvidia-smi命令不显示信息出现NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver
原文:https://www.cnblogs.com/nanmi/p/12617506.html