成功解决 ValueError: Not a TBLoader or TBPlugin subclass: <class ‘tensorboard_plugin_wit.wit_plugin_load

使用TensorBoard,查看默认图的可视化,输入以下命令,报错
input:

 tensorboard --logdir="./tmp/summary"
ValueError: Not a TBLoader or TBPlugin subclass: <class 'tensorboard_plugin_wit.wit_plugin_loader.WhatIfToolPluginLoader'>

解决方案

进入Anaconda prompt ,激活tensorflow
可以先conda list,看看安装包
或直接

pip uninstall tensorboard-plugin-wit

在这里插入图片描述
然后,再执行

 tensorboard --logdir="./tmp/summary"

成功
在这里插入图片描述

解释为什么卸载就成功?

首先需要明确的是,我安装的tensorflow版本是1.14,tensorBoard version == 1.14
而tensorBoard-plugin-wit 仅兼容TensorBoard Version>=2.2以后,所以直接卸载就好。

附上找的解释:

tensorboard-plugin-wit package is only compatible with TensorBoard 2.2 and later. It wasn't added to the requirements.txt for TensorBoard until that version. Before that, WIT was included in TensorBoard as a static built-in plugin, with no need for the pip installation of tensorboard-plugin-wit.

你可能感兴趣的:(TensorFlow,tensorflow)