import tensorflow as tf
报错为:
Error importing tensorflow. Unless you are using bazel,
you should not try to import tensorflow from its source directory;please exit the tensorflow source tree, and relaunch your python interpreter
from there.
解决方式为:
1.进入https://www.tensorflow.org/versions/r0.12/get_started/os_setup.html#pip-installation-on-windows,点击下载vc_redist.x64.exe
2.安装vc_redist.x64.exe
3.安装时会出现 “正在处理 windon_msu_x64”时,是因为window缺少补丁,下载地址为:http://pan.baidu.com/s/1nvpsXVN
4.完毕 可以运行了