Tensorboard:ImportError:无法导入名称“ main”

时间:2018-09-07 18:37:21

标签: python python-3.x tensorflow tensorboard

我使用tensorflow 1.10.0将python 3.6.3脚本中的摘要文件制作到名为'summaries'的目录中。

然后,当我键入tensorboard --logdir==summaries/时, 我收到以下错误:

  File "c:\program files\python36\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\program files\python36\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Program Files\Python36\Scripts\tensorboard.exe\__main__.py", line 5, in <module>
ImportError: cannot import name 'main'

有人可以指出我该如何解决吗?

1 个答案:

答案 0 :(得分:1)

尝试     pip install --upgrade tensorflow-tensorboard