I am encountering the following error:
Traceback (most recent call last): File
"C:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\platform\self_check.py",
line 87, in preload_check
ctypes.WinDLL(build_info.cudnn_dll_name) File "C:\Anaconda\envs\tensorflow\lib\ctypes\__init__.py", line 348, in
__init__
self._handle = _dlopen(self._name, mode) OSError: [WinError 126] The specified module could not be found
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "<stdin ", line 1, in
<module File
"C:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\__init__.py",
line 22, in <module
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import File
"C:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\__init__.py",
line 49, in <module
from tensorflow.python import pywrap_tensorflow File "C:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\pywrap_tensorflow.py",
line 30, in <module
self_check.preload_check() File "C:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\platform\self_check.py",
line 97, in preload_check
% (build_info.cudnn_dll_name, build_info.cudnn_version_number)) ImportError: Could not find 'cudnn64_7.dll'. TensorFlow requires that
this DLL be installed in a directory that is named in your %PATH%
environment variable. Note that installing cuDNN is a separate step
from installing CUDA, and this DLL is often found in a different
directory from the CUDA DLLs. You may install the necessary DLL by
downloading cuDNN 7 from this URL: https://developer.nvidia.com/cudnn
I have installed the required "cuDNN 7" files in the directory mentioned in the %Path% environment, yet the statement
import tensorflow as tf
is not working. I have downloaded the cuDNN 7 files from the mentioned site:
https://developer.nvidia.com/cudnn
I have gone through all the answers on StackOverflow and yet I am getting stuck with the same error. Please guide me on how to run the above statement.