提前道歉,我认为这个问题相当令人困惑!通过Jupyter使用TensorFlow(Python 3)
我想通过Jupyter和Python3内核来使用TensorFlow。
但是,当将Python2或Python3指定为Jupyter内核时,命令import tensorflow as tf
将返回错误:ImportError: No module named tensorflow
。
- 我在我的Mac上安装了Python 2和Python 3,并且可以通过终端访问 两个版本。
- 我安装了TensorFlow for Python 3,但是我只能通过终端上的Python 2访问它。
因此,这个问题实际上是两个方面:
- 我想要得到TensorFlow与Python3
- 工作......这应该引起TensorFlow与Jupyter工作Python3终端上。
您是否安装了tensorflow?你能够从python解释器运行'import tensorflow'吗? – fabrizioM