首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >TensorFlow导入错误: TensorFlow导入错误

TensorFlow导入错误: TensorFlow导入错误
EN

Stack Overflow用户
提问于 2017-04-04 17:32:25
回答 1查看 1.3K关注 0票数 4

我正在尝试开始使用这个手动的视窗 --所有的安装都成功地完成了,我正在使用python3.5.2和最新版本的pip,遇到这个错误,有人解释我该怎么做?

在这里输入代码(最近一次调用):File "C:\Users\parth\AppData\Local\Programs\Python\Python35\lib\site-p tensorflow\python\pywrap_tensorflow.py",第18行,在swig_import_helper返回importlib.import_module(mname) File "C:\Users\parth\AppData\Local\Programs\Python\Python35\lib\import it__.py“中,第126行,在import_module返回_bootstrap._gcd_import(namelevel:,package,level) File "”中,第986行,在_gcd_import文件"“中,第969行,在”_find_and_load文件“中,第958行,在”_find_and_load_unlo文件“中,第666行,在”_load_unlocked文件“中,第577行,在module_from_spec文件”,第906行,在create_mod文件“中,第222行,在_call_with_frames_r ImportError: DLL加载失败:%1不是有效的Win32应用程序。在处理上述异常期间,发生了另一个异常:跟踪(最近一次调用):File "C:\Users\parth\AppData\Local\Programs\Python\Python35\lib\site-p tensorflow\python__init__.py",第66行,from tensorflow.python import pywrap_tensorflow pywrap_tensorflow tensorflow\python\pywrap_tensorflow.py",第21行,在_pywrap_tensorflow = swig_import_helper() swig_import_helper tensorflow\python\pywrap_tensorflow.py“中,第20行,在swig_import_helper返回importlib.import_module('_pywrap_tensorflow')文件it__.py中,第126行,在import_module返回_bootstrap._gcd_import(namelevel:,package )中,级别( "C:\Users\parth\AppData\Local\Programs\Python\Python35\lib\site-p ):在处理上述异常时,没有一个模块名为“_pywrap_tensorflow”,发生了另一个异常:跟踪(最近一次调用):文件"",第1行,文件中的“文件”(_pywrap_tensorflow tensorflow__init__.py),第24行,“从tensorflow.python导入*文件"C:\Users\parth\AppData\Local\Programs\Python\Python35\lib\site-p tensorflow\python__init__.py",第72行,在"C:\Users\parth\AppData\Local\Programs\Python\Python35\lib\site-p ImportError(msg) ImportError: Traceback (最近调用的最后一次调用):File ImportError tensorflow\python\pywrap_tensorflow.py",第18行,swig_import_helper返回importlib.import_module(mname) File "C:\Users\parth\AppData\Local\Programs\Python\Python35\lib\import it__.py",第126行,import_module Re返回_bootstrap._gcd_import(namelevel:,package,级别)文件“,第986行,在_gcd_import文件中”,第969行,在_find_and_load文件中"",第958行,在_find_and_load_unlo文件中“,第666行,在_load_unlocked文件”,第577行,在module_from_spec文件“,第906行,在create_mod文件”,第222行,在_call_with_frames_r ImportError: DLL加载失败:%1不是有效的Win32应用程序。在处理上述异常期间,发生了另一个异常:跟踪(最近一次调用):File "C:\Users\parth\AppData\Local\Programs\Python\Python35\lib\site-p tensorflow\python__init__.py",第66行,from tensorflow.python import pywrap_tensorflow pywrap_tensorflow tensorflow\python\pywrap_tensorflow.py",第21行,在_pywrap_tensorflow = swig_import_helper() swig_import_helper tensorflow\python\pywrap_tensorflow.py“中,第20行,在swig_import_helper返回importlib.import_module('_pywrap_tensorflow')文件it__.py中,第126行,在import_module返回_bootstrap._gcd_import(namelevel:,package )中,ImportError:没有一个名为“_pywrap_tensorflow”的模块加载本机TensorFlow运行时失败。基于一些常见的原因和解决方案,请参见https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3do arted/os_setup.md#import_error。在请求帮助时,在此错误消息前面包含整个堆栈跟踪。

EN

回答 1

Stack Overflow用户

发布于 2017-04-04 18:17:29

在这里输入链接描述当我更新我的vc_redist.x64时,它会运行得很完美

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/43213950

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档