ImportError: No module named keras.optimizers

Question:

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.

Asked By: Simplicity

||

Answers:

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?

Answered By: nostradamus

I am getting that same error when trying to import MRCNN. The import of that dependency is shown in image 2.

Error

SC Import

Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.