ModuleNotFound:张量streamRuning Docker Jupyter OSX

在安装docker后,我试图在Jupyter中运行tensorflow。 我的运行命令是

LewIss-MacBook-Pro:MyTensorFlow lewleib$ docker run -it -p 8888:8888 -p 6006:6006 -v ~/Users/lewleib/MyTensorFlow:/notebooks tensorflow/tensorflow 

在Jupyter笔记本我跑了

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

这导致了

ModuleNotFoundError:没有名为'tensorflow'的模块

我已经尝试在不同的目录开始,并添加前缀gcr.io具有相同的结果。 谢谢