简体   繁体   English

在 windows 服务器 2016 中导入 tensorflow 错误(DLL 加载失败导入 _pywrap_tensorflow_internal)

[英]import tensorflow error in windows server 2016 (DLL load failed importing _pywrap_tensorflow_internal)

I want to run my tensorflow python program in Windows servre 2016 (X 5650 x64 processor, Dell Power Edge 710) The same environment works on local pc but showing error in server device.我想在 Windows servre 2016 (X 5650 x64 处理器,Dell Power Edge 710)中运行我的 tensorflow python 程序(X 5650 x64 处理器,Dell Power Edge 710)相同的环境在服务器上运行,但显示错误。

ERROR:错误:

Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in from tensorflow.python.pywrap_tensorflow_internal import * File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in _pywrap_tensorflow_internal = swig_import_helper() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\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\Administrator\AppData\Local\Programs\Python\Python38\lib\imp.py", line 242, in load_module return load_dynamic(name, filename, file) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\imp.py", line 342, in load_dynamic return _load(回溯(最近一次调用最后):文件“C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\pywrap_tensorflow.py”,第 58 行,来自 tensorflow.python .pywrap_tensorflow_internal 导入 * 文件“C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py”,第 28 行,在 _pywrap_tensorflow_internal = swig_import_helper() 文件“C :\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py",第 24 行,在 swig_import_helper _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname,描述)文件“C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\imp.py”,第 242 行,在 load_module 中返回 load_dynamic(名称、文件名、文件)文件“C:\Users\Administrator \AppData\Local\Programs\Python\Python38\lib\imp.py",第 342 行,在 load_dynamic 返回 _load( spec) ImportError: DLL load failed while importing _pywrap_tensorflow_internal: A dynamic link library (DLL) initialization routine failed.规范) ImportError:DLL 加载失败,同时导入 _pywrap_tensorflow_internal:动态链接库(DLL)初始化例程失败。

During handling of the above exception, another exception occurred:在处理上述异常的过程中,又出现了一个异常:

Traceback (most recent call last): File "", line 1, in import tensorflow File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow__init__.py", line 41, in from tensorflow.python.tools import module_util as _module_util File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python__init__.py", line 50, in from tensorflow.python import pywrap_tensorflow File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 69, in raise ImportError(msg) ImportError: Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in from tensorflow.python.pywrap_tenso回溯(最后一次调用):文件“”,第 1 行,导入 tensorflow 文件“C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow__init__.py”,第 41 行, in from tensorflow.python.tools import module_util as _module_util File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python__init__.py", line 50, in from tensorflow .python 导入 pywrap_tensorflow 文件“C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\pywrap_tensorflow.py”,第 69 行,在引发 ImportError(msg) ImportError: Traceback (最近一次通话最后):文件“C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\pywrap_tensorflow.py”,第 58 行,来自 tensorflow.python。 pywrap_tenso rflow_internal import * File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in _pywrap_tensorflow_internal = swig_import_helper() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\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\Administrator\AppData\Local\Programs\Python\Python38\lib\imp.py", line 242, in load_module return load_dynamic(name, filename, file) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\imp.py", line 342, in load_dynamic return _load(spec) ImportError: DLL load failed while importing _pywrap_tensorflow_internal: A dynamic link library (DLL) initialization routine failed. rflow_internal import * 文件“C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py”,第 28 行,在 _pywrap_tensorflow_internal = swig_import_helper() 文件“C: \Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py”,第 24 行,在 swig_import_helper _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description ) 文件“C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\imp.py”,第 242 行,在 load_module 返回 load_dynamic(name, filename, file) 文件“C:\Users\Administrator\ AppData\Local\Programs\Python\Python38\lib\imp.py",第 342 行,在 load_dynamic 返回 _load(spec) ImportError: DLL 加载失败,同时导入 _pywrap_tensorflow_internal:动态链接库 (DLL) 初始化例程失败。

Failed to load the native TensorFlow runtime.无法加载本机 TensorFlow 运行时。

See https://www.tensorflow.org/install/errors请参阅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.寻求帮助时,请在此错误消息上方包含整个堆栈跟踪。

Im trying to solve this for 2 days and nothing came out.我试图解决这个问题 2 天,但没有任何结果。

Notes:笔记:

-i have set http_proxy for pip -我已经为 pip 设置了 http_proxy

-i have tried installing vc_redist.x64.exe and vc_redist.x86.exe -我已尝试安装 vc_redist.x64.exe 和 vc_redist.x86.exe

-i put msvcp140_1.dll in python folder. -i 将 msvcp140_1.dll 放入 python 文件夹中。

Please Help !请帮忙 !

After some more research i found that.. Intel X 5650 x64 processor does not support AVX instruction which is necessary for tensor-flow.经过更多研究后,我发现.. Intel X 5650 x64 处理器不支持张量流所必需的AVX 指令 So, it this happens one has to check if his/her CPU support AVX instructions or not.因此,如果发生这种情况,必须检查他/她的 CPU 是否支持 AVX 指令。

In most of older CPUs doesn't support this AVX instruction set.在大多数较旧的 CPU 中不支持此 AVX 指令集。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Tensorflow 在 Windows 上安装:DLL 在导入 _pywrap_tensorflow_internal 时加载失败 - Tensorflow installation on Windows: DLL load failed while importing _pywrap_tensorflow_internal Tensorflow: ImportError: DLL load failed while importing _pywrap_tensorflow_internal: 找不到指定的模块 - Tensorflow: ImportError: DLL load failed while importing _pywrap_tensorflow_internal: The specified module could not be found Tensorflow 2.4 - DLL 在导入 _pywrap_tensorflow_internal 时加载失败 - Tensorflow 2.4 - DLL load failed while importing _pywrap_tensorflow_internal 导入 tensorflow 错误:ImportError: DLL load failed while importing _pywrap_tensorflow_internal: The specified module could not be found - Imporing tensorflow error: ImportError: DLL load failed while importing _pywrap_tensorflow_internal: The specified module could not be found ImportError: DLL load failed while importing _pywrap_tensorflow_internal: 动态链接库 (DLL) 初始化例程失败 - ImportError: DLL load failed while importing _pywrap_tensorflow_internal:A dynamic link library (DLL) initialization routine failed TensorFlow ImportError:“ DLL加载失败”和“没有名为pywrap_tensorflow_internal的模块” - TensorFlow ImportError: “DLL load failed” and “No module named pywrap_tensorflow_internal” Tensorflow '_pywrap_tensorflow_internal' 模块错误 - Tensorflow '_pywrap_tensorflow_internal' module error TensorFlow _pywrap_tensorflow_internal 错误 - TensorFlow _pywrap_tensorflow_internal Error 没有名为“_pywrap_tensorflow_internal”的模块错误 - No module named '_pywrap_tensorflow_internal' Error TensorFlow 错误:ImportError: DLL 在 Python3.8 中导入 _pywrap_tensorflow_internal 时加载失败,错误代码为 3221225501 - TensorFlow Error: ImportError: DLL load failed with error code 3221225501 while importing _pywrap_ tensorflow_internal in Python3.8
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM