gpt4 book ai didi

python - Tensorboard 类型错误 : __init__() got an unexpected keyword argument 'file'

转载 作者:太空宇宙 更新时间:2023-11-03 10:51:03 25 4
gpt4 key购买 nike

我在 cmd 中使用 tensorboard --logdir=I:\logs 启动 tensorboard 1.8.0。错误:

I:\> tensorboard --logdir=I:\logs
Traceback (most recent call last):
File "c:\python35\lib\runpy.py", line 184, in _run_module_as_main
"__main__", mod_spec)
File "c:\python35\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\Administrator\AppData\Roaming\Python\Python35\Scripts\tensorboard.exe\__main__.py", line 5, in <module>
File "C:\Users\Administrator\AppData\Roaming\Python\Python35\site-packages\tensorboard\main.py", line 30, in <module>
from tensorboard import default
File "C:\Users\Administrator\AppData\Roaming\Python\Python35\site-packages\tensorboard\default.py", line 35, in <module>
from tensorboard.plugins.audio import audio_plugin
File "C:\Users\Administrator\AppData\Roaming\Python\Python35\site-packages\tensorboard\plugins\audio\audio_plugin.py", line 30, in <module>
from tensorboard.plugins.audio import metadata
File "C:\Users\Administrator\AppData\Roaming\Python\Python35\site-packages\tensorboard\plugins\audio\metadata.py", line 22, in <module>
from tensorboard.plugins.audio import plugin_data_pb2
File "C:\Users\Administrator\AppData\Roaming\Python\Python35\site-packages\tensorboard\plugins\audio\plugin_data_pb2.py", line 63, in <module>
options=None, file=DESCRIPTOR),
TypeError: __init__() got an unexpected keyword argument 'file'

最佳答案

尝试升级protobuf:

pip install --upgrade protobuf

关于python - Tensorboard 类型错误 : __init__() got an unexpected keyword argument 'file' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50269943/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com