python - ImportError: DLL load failed: 动态链接库 (DLL) 初始化例程失败;TensorFlow
问题描述
我正在尝试制作一个借助此(https://gilberttanner.com/blog/tensorflow-object-detection-with-tensorflow-2-creating-a-custom-model)链接检测对象的ai,我当我完成安装并使用代码检查错误时遇到问题
python object_detection/builders/model_builder_tf2_test.py
我的系统:
视窗 10
Python 3.7.0
TensorFlow 2.4.0
输出:
Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 64, in <module>
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "object_detection/builders/model_builder_tf2_test.py", line 21, in <module>
import tensorflow.compat.v1 as tf
File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\__init__.py", line 41, in <module>
from tensorflow.python.tools import module_util as _module_util
File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\__init__.py", line 39, in <module>
from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow
File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 83, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 64, in <module>
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.
解决方案
推荐阅读
- ios - var 迟到不醒来
- flutter - BuildContext:最近封闭的含义?
- excel - 无法获取 PivotItems 类的 _NewEnum 属性 - 在 Excel VBA 中的所有 PivotItems 上循环
- elasticsearch - 在 ElasticSearch 中返回高质量的结果
- react-native - 如何在反应原生快照轮播的一个分页中显示2个项目
- python - 如何使用 pyaaf 从时间线对象访问 source_range?
- python - 在python中读取蛋白质序列的文本文件
- html - 在图像旁边添加箭头
- tensorflow - GPU 上的 Keras - GPU 利用率低
- python - Django DRF如何限制在序列化程序中一次创建的项目