问题描述

初次​​安装tensorflow​​​,win10x64位,python3.6.2
运行官网代码:

import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))

报错如下:

tensorflow安装:“ModuleNotFoundError: No module named

解决方案

swig是一个python到c/c++的依赖包,该错误应该是缺少依赖,​​安装Visual C++ Redistributable 2015 x64​​即可