是因为在装python3的时候没有勾选Download debug binaries (requires VS 2015 or later ),报错:
Traceback (most recent call last ):
File "C:\Users\mark\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow.py" , line 19 , in swig_import_helper
return importlib.import_module(mname)
File "C:\Users\mark\AppData\Local\Programs\Python\Python35\lib\importlib\__init__.py" , line 126 , in import_module
return _bootstrap ._gcd _import(name[level:], package, level)
File "<frozen importlib._bootstrap>" , line 986 , in _gcd _import
File "<frozen importlib._bootstrap>" , line 969 , in _find _and_load
File "<frozen importlib._bootstrap>" , line 958 , in _find _and_load_unlocked
File "<frozen importlib._bootstrap>" , line 666 , in _load _unlocked
File "<frozen importlib._bootstrap>" , line 577 , in module_from_spec
File "<frozen importlib._bootstrap_external>" , line 906 , in create_module
File "<frozen importlib._bootstrap>" , line 222 , in _call _with_frames_removed
ImportError: DLL load failed: The specified module could not be found.
解决方法: Install Microsoft Visual C++ 2015 Redistributable Update 3 x64.
在这之后进入到python3的安装程序,选择repair模式将Download debug binaries (requires VS 2015 or later )选上后安装