‘Keras requires TensorFlow 2.2 or higher. ‘

Tensorflow版本 Keras版本
Tensorflow 2.1
Tensorflow 2.0
Tensorflow 1.15 Keras 2.3.1

Tensorflow 1.14 Keras 2.2.5

Tensorflow 1.13
Tensorflow 1.12
Tensorflow 1.11 Keras 2.2.4

Tensorflow 1.10
Tensorflow 1.9 Keras 2.2.0

Tensorflow 1.8
Tensorflow 1.7
Tensorflow 1.5 Keras 2.1.6

Tensorflow 1.4 Keras 2.0.8

Tensorflow 1.3
Tensorflow 1.2
Tensorflow 1.1
Tensorflow 1.0 Keras 2.0.6

Tensorflow 0.12 Keras 1.2.2

两条命令解决:
pip uninstall keras
pip install keras==2.3.1

猜你喜欢

转载自blog.csdn.net/gz153016/article/details/109659335