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

其他格式: JSON · Markdown 中文 · English
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.

generic

官方文档

https://www.tensorflow.org/install/gpu

解决方案

  1. 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`.
  2. Downgrade TensorFlow to a version compatible with the current driver. For example, use `pip install tensorflow==2.12.0` if the driver is older.

无效尝试

常见但无效的做法:

  1. 95% 失败

    Reinstalling TensorFlow alone does not update the NVIDIA driver; the driver is a system-level component.

  2. 80% 失败

    Installing a newer CUDA toolkit via conda often fails because it does not update the kernel-mode driver.