Tensorflow: I installed CUDA 9.2 but it needs 9.0?

31,787

Solution 1

From its forum: https://devtalk.nvidia.com/default/topic/493290/multiple-cuda-versions-can-they-coexist-/, they said multiple different version of CUDA can co-exist! Just download all versions you need and download all patches(blink or not) and corresponding cuDNN. I installed tensorflow in the virtual environment using conda and after installed all the stuff(restart computer/re-open command prompt several times) then it works now!

Solution 2

I had a same problem and then I solved it by changing python 3.5 to python 3.6. Hope you can solve it too.

Share:
31,787
VimNing
Author by

VimNing

Updated on July 09, 2022

Comments

  • VimNing
    VimNing almost 2 years

    I followed an instruction from a book and installed CUDA Toolkit version 9.2. Then I got this error

    ImportError: Could not find 'cudart64_90.dll'. TensorFlow requires that this DLL be installed in a directory that is named in your %PATH% environment variable. Download and install CUDA 9.0 from this URL: https://developer.nvidia.com/cuda-toolkit

    I searched and found that tensorflow needs 9.0, but what should I do next? Should I delete the old version of CUDA then install the 9.0 ver., or just install 9.0(so I would have two version co-existing)? I don't want to break my computer, help~~~

    Edit:

    I downloaded CUDA9.0 patch1 from the link: https://developer.nvidia.com/cuda-90-download-archive?target_os=Windows&target_arch=x86_64&target_version=10&target_type=exelocal . But it seems like the installer didn't work(it disappeared immediately when I double clicked it)?

  • mieszkoz
    mieszkoz almost 6 years
    Just tried it and it didn't work (Windows7, tensorflow-1.9 binary install).
  • Chan Kim
    Chan Kim about 5 years
    I have already cuda-9.2 installed in my ubuntu 16.4 and tried installing the cuda 9.0 libraries only. but sudo apt-get install cuda-libraries-9-0 doesn't work, giving me this message : E: Unable to locate package cuda-libraries-9-0
  • Chan Kim
    Chan Kim about 5 years
    Thanks, this was useful. For those who want to additively install cuda9.0 using .run file, don't install the driver (say 'no' when asked) durig the .run install. I don't know why NVIDIA doesn't give this information in the installation guide.