ImportError: cannot import name 'kullback_leibler_divergence' from 'keras.losses'

I have installed TensorFlow and Keras and there related dependencies but when i import any function from keras it always throws an import error.
ImportError: cannot import name ‘kullback_leibler_divergence’ from ‘keras.losses’
what is the solution?

Any luck fixing it? I have the same problem.

Create a new environment on Anaconda Navigator and install the necessary libraries. It shall work.