ubuntu安装显卡驱动后仍报错:NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
安装成功显卡驱动后
(yolov8_seg) wudengchao@wudengchao:~$ 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.
然后执行
lsmod | grep nvidia
发现没有输出,那就是安装的驱动还没有挂载。
然后手动挂载:
sudo modprobe nvidia
最后可以输入
nvidia-smi
就有正确的输出了。