Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tensorflow: I installed CUDA 9.2 but it needs 9.0?

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)?

like image 607
Rainning Avatar asked May 19 '18 05:05

Rainning


2 Answers

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!

like image 175
Rainning Avatar answered Sep 19 '22 19:09

Rainning


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.

like image 21
Yifeng Luo Avatar answered Sep 19 '22 19:09

Yifeng Luo