G:\python>tensorboard --logdir runs
f:\anaconda3\lib\site-packages\h5py\__init__.py:34: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
TensorBoard 1.13.1 at http://DESKTOP-C929QOU:6006 (Press CTRL+C to quit)
Traceback (most recent call last):
File "f:\anaconda3\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "f:\anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "f:\Anaconda3\Scripts\tensorboard.exe\__main__.py", line 9, in <module>
File "f:\anaconda3\lib\site-packages\tensorboard\main.py", line 57, in run_main
app.run(tensorboard.main, flags_parser=tensorboard.configure)
File "f:\anaconda3\lib\site-packages\absl\app.py", line 300, in run
_run_main(main, args)
File "f:\anaconda3\lib\site-packages\absl\app.py", line 251, in _run_main
sys.exit(main(argv))
File "f:\anaconda3\lib\site-packages\tensorboard\program.py", line 228, in main
self._register_info(server)
File "f:\anaconda3\lib\site-packages\tensorboard\program.py", line 274, in _register_info
manager.write_info_file(info)
File "f:\anaconda3\lib\site-packages\tensorboard\manager.py", line 269, in write_info_file
payload = "%s\n" % _info_to_string(tensorboard_info)
File "f:\anaconda3\lib\site-packages\tensorboard\manager.py", line 129, in _info_to_string
for k in _TENSORBOARD_INFO_FIELDS
File "f:\anaconda3\lib\site-packages\tensorboard\manager.py", line 129, in <dictcomp>
for k in _TENSORBOARD_INFO_FIELDS
File "f:\anaconda3\lib\site-packages\tensorboard\manager.py", line 51, in <lambda>
(dt - datetime.datetime.fromtimestamp(0)).total_seconds()),
OSError: [Errno 22] Invalid argument
必须先激活tensorflow,再执行tensorboard --logdir runs(根据自己文件夹名确定,默认runs)