Could not load dynamic library 'cudart64_101.dll' on tensorflow CPU-only installation

前端 未结 13 1612
隐瞒了意图╮
隐瞒了意图╮ 2020-11-28 04:02

I just installed the latest version of Tensorflow via pip install tensorflow and whenever I run a program, I get the log message:

W tenso

13条回答
  •  眼角桃花
    2020-11-28 04:45

    To install the prerequisites for GPU support in TensorFlow 2.1:

    1. Install your latest GPU drivers.
    2. Install CUDA 10.1.
      • If the CUDA installer reports "you are installing an older driver version", you may wish to choose a custom installation and deselect some components. Indeed, note that software bundled with CUDA including GeForce Experience, PhysX, a Display Driver, and Visual Studio integration are not required by TensorFlow.
      • Also note that TensorFlow requires a specific version of the CUDA Toolkit unless you build from source; for TensorFlow 2.1 and 2.2, this is currently version 10.1.
    3. Install cuDNN.
      1. Download cuDNN v7.6.4 for CUDA 10.1. This will require you to sign up to the NVIDIA Developer Program.
      2. Unzip to a suitable location and add the bin directory to your PATH.
    4. Install tensorflow by pip install tensorflow.
    5. You may need to restart your PC.

提交回复
热议问题