nvidia-smi指令报错:Failed to initialize NVML: Driver解决
参考
nvidia-smi指令报错:Failed to initialize NVML: Driver解决
1.查看内核版本cat /proc/driver/nvidia/version
2.查看驱动版本dpkg -l | grep nvidia
3.不一致,卸载驱动,安装跟内核一样版本的驱动sudo apt-get --purge remove nvidia*
sudo apt autoremove
sudo apt-get remove --purge nvidia-\*
sudo add-apt-repository ppa:graphics-drivers
sudo apt-get update
sudo apt-cache search nvidia
查看推荐版本,并安装推荐版本ubuntu-drivers devices
sudo apt-get install nvidia-415 nvidia-settings nvidia-prime