您的位置:首页 > 其它

windows10下安装tensorflow后无法使用的问题(一)

2017-06-21 15:54 429 查看
(台式机)电脑配置:

CPU:i53470K

显卡:NVGT730

系统:Windows10 专业版 64位

按照http://blog.csdn.net/u010099080/article/details/53418159一文中的步骤,在阿里云安装了tensorflow-gpu,CUDA也安装好了,运行时出现如下错误:

Traceback (most recent call last):

File "d:\Python\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 18, in swig_import_helper

return importlib.import_module(mname)

File "d:\Python\Python35\lib\importlib_init_.py", line 126, in import_module

return _bootstrap._gcd_import(name[level:], package, level)

File "", line 986, in _gcd_import

File "", line 969, in _find_and_load

File "", line 958, in _find_and_load_unlocked

File "", line 666, in _load_unlocked

File "", line 577, in module_from_spec

File "", line 906, in create_module

File "", line 222, in _call_with_frames_removed

ImportError: DLL load failed: The specified module could not be found.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "d:\Python\Python35\lib\site-packages\tensorflow\python_init_.py", line 66, in 

from tensorflow.python import pywrap_tensorflow

File "d:\Python\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 21, in 

_pywrap_tensorflow = swig_import_helper()

File "d:\Python\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 20, in swig_import_helper

return importlib.import_module('pywrap_tensorflow')

File "d:\Python\Python35\lib\importlib_init.py", line 126, in import_module

return _bootstrap._gcd_import(name[level:], package, level)

ImportError: No module named '_pywrap_tensorflow'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "", line 1, in 

File "d:\Python\Python35\lib\site-packages\tensorflow_init_.py", line 24, in 

from tensorflow.python import *

File "d:\Python\Python35\lib\site-packages\tensorflow\python_init_.py", line 72, in 

raise ImportError(msg)

ImportError: Traceback (most recent call last):

File "d:\Python\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 18, in swig_import_helper

return importlib.import_module(mname)

File "d:\Python\Python35\lib\importlib_init_.py", line 126, in import_module

return _bootstrap._gcd_import(name[level:], package, level)

File "", line 986, in _gcd_import

File "", line 969, in _find_and_load

File "", line 958, in _find_and_load_unlocked

File "", line 666, in _load_unlocked

File "", line 577, in module_from_spec

File "", line 906, in create_module

File "", line 222, in _call_with_frames_removed

ImportError: DLL load failed: The specified module could not be found.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "d:\Python\Python35\lib\site-packages\tensorflow\python_init_.py", line 66, in 

from tensorflow.python import pywrap_tensorflow

File "d:\Python\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 21, in 

_pywrap_tensorflow = swig_import_helper()

File "d:\Python\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 20, in swig_import_helper

return importlib.import_module('pywrap_tensorflow')

File "d:\Python\Python35\lib\importlib_init.py", line 126, in import_module

return _bootstrap._gcd_import(name[level:], package, level)

ImportError: No module named '_pywrap_tensorflow'

Failed to load the native TensorFlow runtime.
解决的办法是安装Microsoft Visual C++ 2015 Redistributable Update 3 x64.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  tensorflow
相关文章推荐