AttributeError: module 'tensorflow.python.estimator.api.estimator' has no attribute 'SessionRunHook'

报错原文:
AttributeError: module 'tensorflow.python.estimator.api.estimator' has no attribute 'SessionRunHook'

接上一篇博客,安装完 tensorboard,在第一次运行时,报了这个错,猜测是与tensorflow的环境发生冲突,SO:

pip uninstall tensorflow

主要卸载时要将tensorboard关掉,否则会有:error 5: [拒绝访问]


卸载完之后

D:\Ryan_homework\torch\board>tensorboard  --logdir='.'
TensorFlow installation not found - running with reduced feature set.
TensorBoard 1.14.0 at http://local_host:6006/ (Press CTRL+C to quit)

TensorFlow installation not found - running with reduced feature set.
这句已经不影响了,已经不用 tf 了

发布了29 篇原创文章 · 获赞 8 · 访问量 2702

猜你喜欢

转载自blog.csdn.net/HaoZiHuang/article/details/104811632