Nvidia-smi失效
完美解决 ERROR: Cannot uninstall '***'. It is a distutils installed project and thus we cannot
NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running
这是一个常见问题,经常出现在ubuntu系统中,主要原因还是系统内核升级了,导致新版本内核和原来显卡驱动不匹配
解决方法一:
只需执行两条命令就好:
sudo apt-get install dkms
sudo dkms install -m nvidia -v 440.44(440.44表示的是驱动版本号)
利用命令 ll /usr/src/ 可查看下面有一个nvidia-440.44/文件夹,版本号因电脑而异