【发布时间】:2017-07-31 10:26:57
【问题描述】:
我是深度学习的新手,我刚刚在我的 Mac 上安装了 tensorflow, 但是,也存在一些问题。
我确定我安装成功了,因为我可以使用 python 3.5 在终端上运行 tensorflow
import tensorflow as tf
node1 = tf.constant(3.0, tf.float32)
node2 = tf.constant(4.0) # also tf.float32 implicitly
print(node1, node2)
我的 bash 上有一个输出
Tensor("Const:0", shape=(), dtype=float32) Tensor("Const_1:0", shape=(), dtype=float32)
但是,当我在 PyCharm 的 Python 控制台上运行 import tensorflow as tf 时。出现问题:
>>> import tensorflow as tf
ImportError: No module named 'tensorflow'
【问题讨论】:
标签: bash python-3.x tensorflow pycharm