AttributeError: module 'keras.backend.tensorflow_backend' has no attribute '_is_tf_1'解决方法

综述

报错:
AttributeError: module ‘keras.backend.tensorflow_backend’ has no attribute ‘_is_tf_1’

AttributeError: module 'keras.backend.tensorflow_backend' has no attribute '_is_tf_1'解决方法

解决方法

版本不对应:
AttributeError: module 'keras.backend.tensorflow_backend' has no attribute '_is_tf_1'解决方法
请在这里检查。

我这里首先卸载已有的tf和keras
重安装后:可以。
AttributeError: module 'keras.backend.tensorflow_backend' has no attribute '_is_tf_1'解决方法