启动Tensorflow:无法导入名称PROJECTOR_FILENAME

时间:2017-09-08 02:48:32

标签: python linux tensorflow tensorboard

所以当我尝试启动张量板时,我收到了这个错误:

Traceback (most recent call last):
  File "/usr/local/bin/tensorboard", line 7, in <module>
    from tensorflow.tensorboard.tensorboard import main
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/tensorboard/tensorboard.py", line 34, in <module>
    from tensorflow.tensorboard.backend import server
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/tensorboard/backend/server.py", line 38, in <module>
    from tensorflow.tensorboard.plugins.projector import plugin as projector_plugin
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/tensorboard/plugins/projector/plugin.py", line 27, in <module>
    from tensorflow.contrib.tensorboard.plugins.projector import PROJECTOR_FILENAME
ImportError: cannot import name PROJECTOR_FILENAME

出了什么问题?

1 个答案:

答案 0 :(得分:1)

当我使用以下命令启动TB时,我遇到了这个错误:

python -m tensorflow.tensorboard

当我使用另一个时,它就可以了:

tensorboard --logdir=path/to/log-directory