【问题标题】:How to install tensorflowgpu-version with lower(compatible) version of cudatoolkit and cudnn如何使用较低(兼容)版本的 cudatoolkit 和 cudnn 安装 tensorflowgpu-version
【发布时间】:2022-06-14 16:37:45
【问题描述】:

每次我在 anaconda 上安装 tensorflow-gpu 时,它都会自动安装 tensorflow-gpu cudatoolkitcudnn 的最新可用版本,即使它与图形不兼容 我已经在我的计算机上安装了卡和 cuda,这在以后造成了一个大问题 模拟。

例如我有RTX3060,我正在安装tensorflow-gpu 2.5.0,我已经安装了 cuda 11.1 但是当我使用 anaconda 安装它时

"conda install tensorflow-gpu=2.5.0" 

它将安装cudatoolkit 11.3.x...和最先进的可用cudnn

【问题讨论】:

    标签: python-3.x tensorflow deep-learning


    【解决方案1】:

    您可以使用兼容的cudatoolkitcudnn 版本使用以下命令安装tensorflow-gpu

    conda install -c conda-forge cudatoolkit=11.2 cudnn=8.1.0
    python3 -m pip install tensorflow-gpu==2.5.0
    # Verify install:
    python3 -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"
    

    有关分步说明,请参阅此link

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-12-31
      • 2022-12-12
      • 1970-01-01
      相关资源
      最近更新 更多