报错原文:
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 了