Simplicity
Simplicity

Reputation: 48916

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.

Upvotes: 0

Views: 18278

Answers (1)

nostradamus
nostradamus

Reputation: 722

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?

Upvotes: 3

Related Questions