如何解决我试图运行一个 python 程序,但我收到了这个错误
Traceback (most recent call last):
File "C:\Users\Admin\anaconda3\lib\site-
packages\tensorflow\python\pywrap_tensorflow.py",line 64,in <module>
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed while importing
_pywrap_tensorflow_internal: A dynamic link library (DLL) initialization
routine failed.
During handling of the above exception,another exception occurred:
Traceback (most recent call last):
File "train_mask_detector.py",line 2,in <module>
from tensorflow.keras.preprocessing.image import ImageDataGenerator
File "C:\Users\Admin\anaconda3\lib\site-
packages\tensorflow\__init__.py",line 41,in <module>
from tensorflow.python.tools import module_util as _module_util
File "C:\Users\Admin\anaconda3\lib\site-
packages\tensorflow\python\__init__.py",line 39,in <module>
from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow
File "C:\Users\Admin\anaconda3\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\anaconda3\lib\site-
packages\tensorflow\python\pywrap_tensorflow.py",in <module>
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed while importing
_pywrap_tensorflow_internal: A dynamic link library (DLL) initialization
routine failed.
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.
(base) c:\users\admin\Face-Mask-Detection-master (1)\Face-Mask-
Detection-master>python train_mask_detector.py
Traceback (most recent call last):
File "C:\Users\Admin\anaconda3\lib\site-
packages\tensorflow\python\pywrap_tensorflow.py",in <module>
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed while importing
_pywrap_tensorflow_internal: A dynamic link library (DLL) initialization
routine failed.
During handling of the above exception,another exception occurred:
Traceback (most recent call last):
File "train_mask_detector.py",in <module>
from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow
File "C:\Users\Admin\anaconda3\lib\site-
packages\tensorflow\python\pywrap_tensorflow.py",in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\Admin\anaconda3\lib\site-
packages\tensorflow\python\pywrap_tensorflow.py",in <module>
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed while importing
_pywrap_tensorflow_internal: A dynamic link library (DLL) initialization
routine failed.
Failed to load the native TensorFlow runtime.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。