TensorFlow——CPU 安装在windows出现问题

1、参考链接:https://github.com/tensorflow/tensorflow/issues/8385

在win7下面 安装tensorflow必须要安装一个小的软件包Visual C++ Redistributable 2015 x64。他的作用如下:

用VS 20xx编写的程序需要用到VC运行库,有2005 2008 2012 2013 2015各种,最好别删,哪天某个软件不能用了就又要重新装了。

Visual C++ Redistributable 2015 x64下载链接:https://www.microsoft.com/en-us/download/details.aspx?id=53587

安装好就没问题啦!!!

另外注意:你的python要在3.5版本以上


当你在import tensorflow as tf出现以下问题时候,可以用上文的方法。

Traceback (most recent call last):
File "C:\Users\test\AppData\Local\Programs\Python\Python35\lib\site-packages\t
ensorflow\python\pywrap_tensorflow.py", line 18, in swig_import_helper
return importlib.import_module(mname)
File "C:\Users\test\AppData\Local\Programs\Python\Python35\lib\importlib_ini
t
_.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.


你可能感兴趣的:(TensorFlow,TensorFlow,Windows,问题)