本文介绍了无法加载Tensorboard的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

错误:无法启动TensorBoard(已退出1).stderr的内容:追溯(最近一次通话): 在第10行中输入文件"/home/arshad/anaconda3/bin/tensorboard" sys.exit(run_main()) 在run_main的第58行,文件"/home/arshad/anaconda3/lib/python3.7/site-packages/tensorboard/main.py" default.get_plugins()+ default.get_dynamic_plugins(), get_dynamic_plugins中的第110行的文件"/home/arshad/anaconda3/lib/python3.7/site-packages/tensorboard/default.py" 用于pkg_resources.iter_entry_points('tensorboard_plugins')中的entry_point 在第110行的"/home/arshad/anaconda3/lib/python3.7/site-packages/tensorboard/default.py"文件中 用于pkg_resources.iter_entry_points('tensorboard_plugins')中的entry_point 载入中的文件"/home/arshad/anaconda3/lib/python3.7/site-packages/pkg_resources/init.py",行2442 self.require(* args,** kwargs) 在要求中添加文件"/home/arshad/anaconda3/lib/python3.7/site-packages/pkg_resources/init.py",第2465行 items = working_set.resolve(reqs,env,installer,extras = self.extras) 解析文件"/home/arshad/anaconda3/lib/python3.7/site-packages/pkg_resources/init.py",第791行 引发VersionConflict(dist,req).with_context(dependent_req)pkg_resources.VersionConflict:(grpcio 1.16.1(/home/arshad/anaconda3/lib/python3.7/site-packages),Requirement.parse('grpcio> = 1.24.3'))

ERROR: Failed to launch TensorBoard (exited with 1).Contents of stderr:Traceback (most recent call last): File "/home/arshad/anaconda3/bin/tensorboard", line 10, in sys.exit(run_main()) File "/home/arshad/anaconda3/lib/python3.7/site-packages/tensorboard/main.py", line 58, in run_main default.get_plugins() + default.get_dynamic_plugins(), File "/home/arshad/anaconda3/lib/python3.7/site-packages/tensorboard/default.py", line 110, in get_dynamic_plugins for entry_point in pkg_resources.iter_entry_points('tensorboard_plugins') File "/home/arshad/anaconda3/lib/python3.7/site-packages/tensorboard/default.py", line 110, in for entry_point in pkg_resources.iter_entry_points('tensorboard_plugins') File "/home/arshad/anaconda3/lib/python3.7/site-packages/pkg_resources/init.py", line 2442, in load self.require(*args, **kwargs) File "/home/arshad/anaconda3/lib/python3.7/site-packages/pkg_resources/init.py", line 2465, in require items = working_set.resolve(reqs, env, installer, extras=self.extras) File "/home/arshad/anaconda3/lib/python3.7/site-packages/pkg_resources/init.py", line 791, in resolve raise VersionConflict(dist, req).with_context(dependent_req)pkg_resources.VersionConflict: (grpcio 1.16.1 (/home/arshad/anaconda3/lib/python3.7/site-packages), Requirement.parse('grpcio>=1.24.3'))

推荐答案

如果仍然无法使用,您需要做的是使用以下方法升级grpcio软件包:

In case it still doesn't work for you, what you need to do is upgrade your grpcio package with:

pip install --upgrade grpcio

应该工作正常.

这篇关于无法加载Tensorboard的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 10:59