运行tensorboard --logdir log_dir
时出现错误:
Traceback (most recent call last):
File "/home/user/.local/bin/tensorboard", line 11, in <module>
sys.exit(run_main())
File "/home/user/.local/lib/python3.6/site-packages/tensorboard/main.py", line 64, in run_main
app.run(tensorboard.main, flags_parser=tensorboard.configure)
File "/home/user/.local/lib/python3.6/site-packages/absl/app.py", line 300, in run
_run_main(main, args)
File "/home/user/.local/lib/python3.6/site-packages/absl/app.py", line 251, in _run_main
sys.exit(main(argv))
File "/home/user/.local/lib/python3.6/site-packages/tensorboard/program.py", line 228, in main
server = self._make_server()
File "/home/user/.local/lib/python3.6/site-packages/tensorboard/program.py", line 309, in _make_server
self.assets_zip_provider)
File "/home/user/.local/lib/python3.6/site-packages/tensorboard/backend/application.py", line 161, in standard_tensorboard_wsgi
reload_task)
File "/home/user/.local/lib/python3.6/site-packages/tensorboard/backend/application.py", line 194, in TensorBoardWSGIApp
return TensorBoardWSGI(plugins, path_prefix)
File "/home/user/.local/lib/python3.6/site-packages/tensorboard/backend/application.py", line 245, in __init__
raise ValueError('Duplicate plugins for name %s' % plugin.plugin_name)
ValueError: Duplicate plugins for name projector
这个问题可能是什么原因?
最佳答案
安装tensorflow == 2.0.0-rc2后遇到了相同的问题。卸载tensorboard并没有帮助。
在我看来,罪魁祸首是tb-nightly软件包:
#python3.7 -m pip list | grep tb
tb-nightly 1.15.0a20190806
删除软件包并重新安装teinstalling tensorflow之后,tensorboard开始正常工作。
关于python - ValueError:名称投影仪重复的插件,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/57228487/