我尝试通过以下命令初始化tensorboard调试器
tensorboard --logdir summarytrain/ --debugger_port 7000
此命令的输出是: 回溯(最近一次调用最后一次):文件" c:\ users \ krisb \ appdata \ local \ programs \ python \ python36 \ lib \ site-packages \ tensorboard \ plugins \ debugger \ debugger_plugin_loader.py",line 79,在_ConstructDebuggerPluginWithGrpcPort中从tensorboard.plugins.debugger导入debugger_plugin作为debugger_plugin_lib文件" c:\ users \ krisb \ appdata \ local \ programs \ python \ python36 \ lib \ site-packages \ tensorboard \ plugins \ debugger \ debugger_plugin。 py",第36行,来自tensorboard.plugins.debugger import debugger_server_lib文件" c:\ users \ krisb \ appdata \ local \ programs \ python \ python36 \ lib \ site-packages \ tensorboard \ plugins \ debugger \ debugger_server_lib.py",第33行,i n来自tensorflow.python.debug.lib import grpc_debug_server文件" c:\ users \ krisb \ appdata \ local \ programs \ python \ python36 \ lib \ site-packages \ tensorflow \ python \ debug \ lib \ grpc_debug_server.py& #34;,第27行,在导入grpc中ModuleNotFoundError:没有名为' grpc'在处理上述异常期间,发生了另一个异常:Traceback(最近一次调用最后一次):File" c:\ users \ krisb \ appdata \ local \ programs \ python \ python36 \ lib \ runpy.py",第193行,在_run_module_as_main" main ",mod_spec)文件" c:\ users \ krisb \ appdata \ local \ programs \ python \ python36 \ lib \ runpy。 py",第85行,在_run_code exec(代码,run_globals)文件" C:\ Users \ krisb \ AppData \ Local \ Programs \ Python \ Python36 \ Scripts \ tensorboard.exe__main __。py",line 9,在Fi le" c:\ users \ krisb \ appdata \ local \ programs \ python \ python36 \ lib \ site-packages \ tensorboard \ main.py",第36行,在run_main tf.app.run(main)中文件" c:\ users \ krisb \ appdata \ local \ programs \ python \ python36 \ lib \ site-packages \ tensorflow \ python \ platform \ app.py",第124行,在运行_sys.exit中( main(argv))文件" c:\ users \ krisb \ appdata \ local \ programs \ python \ python36 \ lib \ site-packages \ tensorboard \ main.py",第45行,在main default.get_assets_zip_provider中())文件" c:\ users \ krisb \ appdata \ local \ programs \ python \ python36 \ lib \ site-packages \ tensorboard \ program.py",第165行,主tb = create_tb_app(plugins,assets_zip_provider)文件" c:\ users \ krisb \ appdata \ local \ programs \ python \ python36 \ lib \ site-packages \ tensorboard \ program.py",第199行,在create_tb_app window_title = FLAGS.window_title)文件" c:\ users \ krisb \ appdata \ local \ programs \ python \ python36 \ lib \ site-packages \ tensorboard \ backend \ application.py",第126行,在standard_tensorboard_wsgi中plugin_instances = [constructor(插件中的构造函数]文件" c:\ users \ krisb \ appdata \ local \ programs \ python \ python36 \ lib \ site-packages \ tensorboard \ backend \ application.py",第126行,in plugin_instances = [插件中构造函数的构造函数(context)]文件" c:\ users \ krisb \ appdata \ local \ programs \ python \ python36 \ lib \ site-packages \ tensorboard \ plugins \ debugger \ debugger_plugin_loader.py&# 34;,第87行,_ConstructDebuggerPluginWithGrpcPort err.message + AttributeError:' ModuleNotFoundError'对象没有属性' message'
我曾尝试通过pip install gprc安装GPRC,但我也收到了以下错误 命令" python setup.py egg_info"失败,错误代码为1 C:\ Users \用户krisb \应用程序数据\本地\ TEMP \ PIP-安装-h7zjk7ly \ GRPC \
完全陷入困境 - 任何人都有任何解决方案?
答案 0 :(得分:0)
原来解决这个问题的方法是安装
grpcio
因此请输入
pip install grpcio