Simplicity Simplicity - 1 year ago 246
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?


Answer Source

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?

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download