使用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的解决办法.

1、 查看显卡驱动的版本号

ll /usr/src/ 

2、执行命令

sudo apt-get install dkms
sudo dkms install -m nvidia -v 470.63.01470.63.01是显卡驱动版本号)

3、重启电脑