参考: https://stackoverflow.com/questions/45095820/tensorboard-command-not-found
解决:
首先保证当前环境下安装了 Tensorflow:
pip install tensorflow
如果已经安装,但仍然找不到 tensorboard 就继续往下看。
查看 Tensorflow 的安装位置:
pip show tensorflow
复制 Location 后的地址信息,进入该目录下:
cd path/to/python/site-packages
进入 tensorboard 目录:
cd tensorboard
在该目录下,有一个 main 文件,执行命令启动 tensorboard:
python main.py --logdir=/path/to/log_file/