1.1问题报错:AttributeError: module ‘tensorflow.python.keras.backend’ has no attribute ‘get_graph’

AttributeError: module 'tensorflow.python.keras.backend' has no attribute 'get_graph'

1.2解决办法

造成这种问题的原因是你安装的tensorflow版本和keras版本不匹配
​​​ https://docs.floydhub.com/guides/environments/​keras使用过程中的问题总结_python

# pip install -i https://mirrors.aliyun.com/pypi/simple/  keras==1.9.0
# pip install -i https://mirrors.aliyun.com/pypi/simple/ keras==2.2.0