Reputation: 48916
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
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