Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tensorflow GPU - ImportError: Could not find 'nvcuda.dll'

ImportError: Could not find 'nvcuda.dll'. TensorFlow requires that this DLL be installed in a directory that is named in your %PATH% environment variable. Typically it is installed in 'C:\Windows\System32'. If it is not present, ensure that you have a CUDA-capable GPU with the correct driver installed.

please solve this error i am doing FYP

like image 246
Noman Niazi Avatar asked Sep 06 '25 03:09

Noman Niazi


1 Answers

First of all, my computer does not have an Nvidia card. So I can not install CUDA driver. I downloaded nvcuda.dll and executed

regsvr32  C:\Windows\System32\nvcuda.dll

instruction, they make a fire so as to compile all TensorFlow code that note

ImportError: Could not find 'nvcuda.dll'.

Anyway, please reinstall your TensorFlow:

pip uninstall protobuf 
pip uninstall tensorflow

and then

pip install protobuf 
pip install tensorflow
like image 141
charles hsu 徐海林 Avatar answered Sep 09 '25 20:09

charles hsu 徐海林