WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
是因为tensorboard版本与tensorflow-gpu的版本不匹配或缺失
- 版本不匹配:
- 卸载原来版本:
pip uninstall tensorboard
- 下载与tensorflow-gpu匹配版本,因为我用的是GPU2.1.0版本,所以:
pip install tensorboard==2.1 -i https://pypi.tuna.tsinghua.edu.cn/simple
(采用清华镜像下载)
- 卸载原来版本:
- 缺失:
直接安装即可:
pip install tensorboard -i https://pypi.tuna.tsinghua.edu.cn/simple
更改后运行结果:
其他包出现找不到问题,一般也是版本问题,可用上述方式尝试解决