【发布时间】:2018-05-01 15:25:06
【问题描述】:
我已经通过 Anaconda 安装了 tensorflow,并通过以下方式成功验证了它
import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))
验证成功。
但是当我打开 Jupyter notebook 或 Spider 时,输入:
import tensorflow as ts
它出现了:
Traceback(最近一次调用最后一次):
文件“”,第 1 行,在 将张量流导入为 ts
ModuleNotFoundError: 没有名为“tensorflow”的模块
有什么建议吗?谢谢!
【问题讨论】:
标签: tensorflow