У меня установлен tenorflow на Windows 10 вместе с Keras (который был установлен первым). Когда я импортирую keras, я получаю ошибку отсутствия DLL.
Я искал его и нашел этот тестовый сценарий , который привел к следующему результату:
tensorflow-test.py:21: DeprecationWarning: the imp module is deprecated in favour of importlib; see
the module's documentation for alternative uses
import imp
ERROR: Failed to import the TensorFlow module.
WARNING! This script is no longer maintained!
=============================================
Since TensorFlow 1.4, the self-check has been integrated with TensorFlow itself,
and any missing DLLs will be reported when you execute the `import tensorflow`
statement. The error messages printed below refer to TensorFlow 1.3 and earlier,
and are inaccurate for later versions of TensorFlow.
- Python version is 3.7.
- The official distribution of TensorFlow for Windows requires Python version 3.5 or 3.6.
- TensorFlow is installed at: C:\Users\billy\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow
- Could not load 'cudart64_80.dll'. The GPU version of TensorFlow
requires that this DLL be installed in a directory that is named in
your %PATH% environment variable. Download and install CUDA 8.0 from
this URL: https://developer.nvidia.com/cuda-toolkit
- Could not load 'cudnn64_5.dll'. The GPU version of 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 it is often found in a
different directory from the CUDA DLLs. You may install the
necessary DLL by downloading cuDNN 5.1 from this URL:
https://developer.nvidia.com/cudnn
- Could not find cuDNN.