I want to use keras with the code shown below:
from sklearn.model_selection import train_test_split
from keras.models import Sequential
df = DataReader('AAPL', data_source='yahoo', start='2012-01-01', end=datetime.now())
but I keep getting the error:
ImportError: Keras requires TensorFlow 2.2 or higher. Install TensorFlow via `pip install tensorflow
I have both keras 2.4.3 and tensorflow 2.2.0 installed in anaconda environment. I uninstalled and installed jupiter notebook but it didn't help.