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

前端 未结 13 1603
隐瞒了意图╮
隐瞒了意图╮ 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:48

    In my case the tensorflow install was looking for cudart64_101.dll

    The 101 part of cudart64_101 is the Cuda version - here 101 = 10.1

    I had downloaded 11.x, so the version of cudart64 on my system was cudart64_110.dll

    This is the wrong file!! cudart64_101.dll ≠ cudart64_110.dll

    Solution

    Download Cuda 10.1 from https://developer.nvidia.com/

    Install (mine crashes with NSight Visual Studio Integration, so I switched that off)

    When the install has finished you should have a Cuda 10.1 folder, and in the bin the dll the system was complaining about being missing

    Check that the path to the 10.1 bin folder is registered as a system environmental variable, so it will be checked when loading the library

    You may need a reboot if the path is not picked up by the system straight away

提交回复
热议问题