otherwise, you'll have to pip install it:
try:
import keras
except ModuleNotFoundError:
!pip install keras==2.2.4
import keras
print(keras.__version__)
But you have to make sure you use a version of keras compatible with the current tensorflow. Otherwise, pip install tf as well.
------------------------------
Philippe Gregoire
IBM France - TSP & ISV Technical Enablement - Data&AI, IoT Europe
NICE, France
------------------------------