I am using Python 3.6 and Tensorflow 2.0, and have some Keras codes:
import keras
from keras.models import Sequential
from keras.layers import Dense
model = Sequential()
model.add(Dense(1))
model.compile(optimizer='adam',loss='mean_squared_error',metrics=['accuracy'])
When I run this code, I got the following error:
Keras requires TensorFlow 2.2 or higher. Install TensorFlow via pip install tensorflow
I checked on https://keras.io/, it says Keras was built on Tensorflow 2.0. So I am confused. What exact version of Tensorflow does latest Keras support? and how to fix the above error? Thanks!
