I am trying to run keras for the first time. I installed the modules with:
pip install keras --user pip install tensorflow --user
and then
I got this problem when it turns out keras was using the Theano backend. To fix it do one of these:
keras
Theano
~/.keras/keras.json
"backend": "tensorflow"
KERAS_BACKEND
tensorflow
See Keras backend documentation for more information.