查看显卡报错:NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

当输入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.报错,解决方式:

sudo apt-get install dkms
sudo dkms install -m nvidia -v 460.73.01  # 460.73.01是驱动版本号

当不知道版本号为多少时,可输入以下命令查看:

ll /usr/src/

作者:xiaolanLin

声明 :本文版权归作者和博客园共有,来源网址:https://www.cnblogs.com/xiaolan-Lin 欢迎各位转载,未经作者本人同意转载文章时,必须在文章页面明显位置给出作者和原文连接,否则保留追究法律责任的权利!
致读者 :在技术这方面我还是一个新手,若文章中的表述有误,还请各位批评指点,喜欢的话支持一下点个“推荐”吧。

原文地址:https://www.cnblogs.com/xiaolan-Lin/p/15040142.html