CUD
tensorflow
install_error
ai_generated
true
InternalError:CUDA 驱动程序版本不足以支持 CUDA 运行时版本
InternalError: CUDA driver version is insufficient for CUDA runtime version
ID: tensorflow/cuda-driver-version-mismatch
92%修复率
90%置信度
1证据数
2024-05-20首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| tensorflow 2.15 | active | — | — | — |
| tensorflow 2.16 | active | — | — | — |
| tensorflow 2.17 | active | — | — | — |
根因分析
安装的 NVIDIA 驱动程序版本低于 TensorFlow 编译所依赖的 CUDA 工具包所需版本。
English
The installed NVIDIA driver is older than the version required by the CUDA toolkit that TensorFlow was compiled against.
官方文档
https://www.tensorflow.org/install/gpu解决方案
-
Update the NVIDIA driver to the required version. Check current driver with `nvidia-smi` and download the latest driver from https://www.nvidia.com/Download/index.aspx. For Ubuntu: `sudo apt update && sudo apt install nvidia-driver-545`.
-
Downgrade TensorFlow to a version compatible with the current driver. For example, use `pip install tensorflow==2.12.0` if the driver is older.
无效尝试
常见但无效的做法:
-
95% 失败
Reinstalling TensorFlow alone does not update the NVIDIA driver; the driver is a system-level component.
-
80% 失败
Installing a newer CUDA toolkit via conda often fails because it does not update the kernel-mode driver.