Simplicity Simplicity - 3 months ago 18
Python Question

ImportError: No module named keras.optimizers

I have this import statement in Keras:

from keras.optimizers import SGD, RMSprop


But getting this error on this error:

ImportError: No module named keras.optimizers


Why is that? And, how can I solve this issue?

Thanks.

Answer

Most obvious answer would be: You do not have keras installed. Do you? Maybe try pip install keras or pip freeze to check? Or if you are on Linux, you can also try which keras.

Can you provide us with additional information?

Comments