启动Tensorboard时发生错误:class BeholderHook(tf.estimator.SessionRunHook): AttributeError: module 'tensorflow.python.estimator.estimator_lib' has no attribute 'SessionRunHook'


报错:class BeholderHook(tf.estimator.SessionRunHook):
AttributeError: module 'tensorflow.python.estimator.estimator_lib' has no attribute 'SessionRunHook'

检查tensorboard的安装情况:pip3 list

发现tensorboard与tensorflow的版本不一致;卸载 pip3 uninstall tensorboard;重新安装

pip3 install tensorboard==1.6

发现tensorboard 不是系统命令,需要将tensorboard配置到环境变量中去,先查看安装路径:

pip3 show tensorboard

重新启动:tensorboard --logdir=logs  成功启动tensorboard

 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM