python - 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 版本。
解决方案
推荐阅读
- sql - 材料清单
- amazon-web-services - 有谁知道 ELB 需要多长时间才能扩展?
- python - 在点 matplotlib 上方添加注释
- c# - 将 LINQ 结果发送到 ASP.NET MVC 中的另一个函数
- css - Sass 和附加父类
- docker - 为 Visual Studio Docker-Compose 项目设置启动 URL
- python-3.x - Python加入两个不同大小的dfs
- python - 超级卡在 USACO 项链破损问题上
- javascript - node/express中的“/*”是什么意思 app.get("/*)
- ajax - 防止异步 Ajax 调用中的竞争条件