【发布时间】:2016-08-05 12:42:08
【问题描述】:
我目前正在使用 tensorflow,我想可视化我正在编写的卷积神经网络的效果。但是,我不能使用张量板。我将 conda env 下方的张量板视为 envs/tensorenv/bin/tensorboard(python 文件)。它导入了它找不到的名为 tensorflow.tensorboard.tensorboard 的东西。
(tensorenv)wifi-131-179-39-186:TensorflowTutorial hongshuhong$ tensorboard --logdir=log/
Traceback (most recent call last):
File "/Users/hongshuhong/anaconda/envs/tensorenv/bin/tensorboard", line 4, in <module>
import tensorflow.tensorboard.tensorboard
ImportError: No module named 'tensorflow.tensorboard.tensorboard'
- 我尝试查找 tensorflow.tensorboard.tensorboard,但在我的目录中的任何地方都没有看到它。
- 我在 anaconda 下使用 tensorflow 的 Mac OSX 发行版,使用 python 3.5.1 和 anaconda 的软件包。
- 我正在使用 ipython notebook 来编写 convnet 的代码。
任何帮助将不胜感激。如果需要额外信息,请告诉我,谢谢。
【问题讨论】:
-
你能在 python.org 的 python 上使用 tensorflow 吗? (IDLE) 您是否尝试过在 anaconda 中重新安装 tensorflow?
-
嗨!我用IDLE,写了“import tensorflow as tf”,回车,没有报错。我已经尝试重新安装一次(但使用相同的选项),但同样的错误仍然存在。
标签: python ipython anaconda tensorflow tensorboard