AttributeError: module 'tensorflow._api.v1.compat.v1' has no attribute 'pywrap_tensorflow'

AttributeError: module 'tensorflow._api.v1.compat.v1' has no attribute 'pywrap_tensorflow'

尝试 运行 tensorboard --logdir dump_dir 我得到 AttributeError: module 'tensorflow._api.v1.compat.v1' has no attribute 'pywrap_tensorflow'

Tensorboard 版本:

TensorBoard 1.13.1

python -c "from tensorboard import version; print(version.VERSION)"
1.13.1

Tensorflow 版本:

python -c "import tensorflow; print(tensorflow.__version__)"
1.14.0-rc1

我已经从源代码构建了tensorflow,是版本不匹配吗?

似乎 pip3 install --upgrade tensorboard 有帮助。