导入tensorflow gpu时,如何修复“导入错误:DLL加载失败:找不到指定的过程”?

导入tensorflow gpu时,如何修复“导入错误:DLL加载失败:找不到指定的过程”?,tensorflow,import,keras,gpu,Tensorflow,Import,Keras,Gpu,我无法在python 3.6.0上导入tensorflow gpu==1.13.1 我已经做了: Nvidia的驱动程序我有GEFORCE 840M,这是cuda支持的计算能力5.0 我安装的Visual Studio 2017 Professional未在工作负载中选择任何规范 我安装的CUDA 10.1与Visual studio集成有问题,因此在安装过程中禁用了它 我将CUDNN7.5.0粘贴到cuda的文件夹中 重新启动 Pip在python 3.6.0上安装了tensorflow gp

我无法在python 3.6.0上导入tensorflow gpu==1.13.1

我已经做了:

Nvidia的驱动程序我有GEFORCE 840M,这是cuda支持的计算能力5.0

我安装的Visual Studio 2017 Professional未在工作负载中选择任何规范

我安装的CUDA 10.1与Visual studio集成有问题,因此在安装过程中禁用了它

我将CUDNN7.5.0粘贴到cuda的文件夹中

重新启动

Pip在python 3.6.0上安装了tensorflow gpu==1.13.1

但是我无法导入tensorflow,它显示了下面的错误

目标:
显然,能够从tensorflow库导入tensorflow和keras。

在我的例子中,这是一个问题,无法检测tensorflow gpu==1.13.1的正确CUDA Toolkit/cuDNN版本

花了2个小时之后,我安装了CUDA Toolkit 10.0,并在用户环境设置窗口10中将TF_CUDA_版本环境变量显式设置为10。

更新将发布在:
>>> import tensorflow as tf
Traceback (most recent call last):
  File "C:\Users\BenBouali\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "C:\Users\BenBouali\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "C:\Users\BenBouali\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
  File "C:\Users\BenBouali\AppData\Local\Programs\Python\Python36\lib\imp.py", line 242, in load_module
    return load_dynamic(name, filename, file)
  File "C:\Users\BenBouali\AppData\Local\Programs\Python\Python36\lib\imp.py", line 342, in load_dynamic
    return _load(spec)
ImportError: DLL load failed: 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:\Users\BenBouali\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\__init__.py", line 24, in <module>
    from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
  File "C:\Users\BenBouali\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\__init__.py", line 49, in <module>
    from tensorflow.python import pywrap_tensorflow
  File "C:\Users\BenBouali\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in <module>
    raise ImportError(msg)
ImportError: Traceback (most recent call last):
  File "C:\Users\BenBouali\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "C:\Users\BenBouali\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "C:\Users\BenBouali\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
  File "C:\Users\BenBouali\AppData\Local\Programs\Python\Python36\lib\imp.py", line 242, in load_module
    return load_dynamic(name, filename, file)
  File "C:\Users\BenBouali\AppData\Local\Programs\Python\Python36\lib\imp.py", line 342, in load_dynamic
    return _load(spec)
ImportError: DLL load failed: The specified module could not be found.


Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/errors

for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.
>>>