Check the versions.
pip list | grep Keras
If it's already installed,uninstall and upgrade.
pip uninstall Keras
pip install Keras==2.3.1
pip uninstall Keras-Applications
pip install Keras-Applications==1.0.8
pip uninstall Keras-Preprocessing
pip install Keras-Preprocessing==1.1.0
Hope it helps.