首页 > 解决方案 > Tensorflow 给出错误 ImportError: DLL load failed with error code -1073741795

问题描述

我在 Windows 7 上使用 python 3.7、Tensorflow 1.14.0、keras 2.2.5。当我运行项目时,它会抛出错误。

`Using TensorFlow backend.
 Traceback (most recent call last):
 File "E:\Python\PycharmProjects\nFace\venv\lib\site- 
 packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
 from tensorflow.python.pywrap_tensorflow_internal import *
 File "E:\Python\PycharmProjects\nFace\venv\lib\site- 
 packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
 File "E:\Python\PycharmProjects\nFace\venv\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\sandip.d\AppData\Local\Programs\Python\Python37\lib\imp.py", line 243, in load_module
 return load_dynamic(name, filename, file)
 File "C:\Users\sandip.d\AppData\Local\Programs\Python\Python37\lib\imp.py", line 343, in 
 load_dynamic
 return _load(spec)
ImportError: DLL load failed with error code -1073741795

During handling of the above exception, another exception occurred:`

我尝试了很多解决方案,我是 Python 和堆栈溢出的新手。我无法更新 tensorflow 和 keras 版本。

标签: pythontensorflowkeras

解决方案


推荐阅读