Skip to content Skip to sidebar Skip to footer

No Module Named 'keras.legacy'

I am working on speech recognition where I have to use keras Optimizer. from keras.optimizers import Optimizer from keras.legacy import interfaces from keras import backend as K I

Solution 1:

It looks like the Keras team removed the legacy module as of version 2.4.0. (https://github.com/keras-team/keras/releases)

Try downgrading your version to 2.3.1: conda install keras=2.3.1

Post a Comment for "No Module Named 'keras.legacy'"