我是Deep Learning的新手,我刚刚在我的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)
Run Code Online (Sandbox Code Playgroud)
我的bash上有一个输出
Tensor("Const:0", shape=(), dtype=float32) Tensor("Const_1:0", shape=(), dtype=float32)
Run Code Online (Sandbox Code Playgroud)
但是,当我import tensorflow as tf在PyCharm的Python控制台上运行时.出现问题:
>>> import tensorflow as tf
ImportError: No module named 'tensorflow'
Run Code Online (Sandbox Code Playgroud)