ModuleNotFoundError: No module named 'keras'

0 votes

Hi Guys,

I installed keras module in my system. But when I tried to import this module I got this below error.

$ from keras.models import Sequential
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-7-9c5e0a19b646> in <module>
----> 1 from keras.models import Sequential
ModuleNotFoundError: No module named 'keras'
Apr 23 in Machine Learning by akhtar
• 11,270 points
974 views

1 answer to this question.

0 votes

Hi@akhtar,

I think this problem is related to environment. Your tensorflow module may be installed in different env. and keras in different env. So, try to uninstall keras module and again install it.

$ pip uninstall keras
$ pip install keras

Hope this will solve your error.

answered Apr 23 by MD
• 24,500 points

Related Questions In Machine Learning

0 votes
1 answer

ImportError: No module named 'tensorflow.contrib.rnn.python.ops.core_rnn

Hi@akhtar, I think you got this error because of incompatible ...READ MORE

answered Apr 22 in Machine Learning by MD
• 24,500 points
1,166 views
0 votes
1 answer

ImportError: No module named seaborn

Hi@akhtar, By default it comes with Anaconda but ...READ MORE

answered Apr 28 in Machine Learning by MD
• 24,500 points
118 views
0 votes
0 answers

AttributeError: module 'tensorflow.compat' has no attribute 'v1'

i am building an Rasa chatbot but ...READ MORE

Nov 3, 2019 in Machine Learning by Usman
• 120 points
1,273 views
0 votes
1 answer

After installation of tensorflow ,attribute error: no Session module exists

To install TensorFlow you need to have ...READ MORE

answered Mar 16 in Machine Learning by Sirajul
• 53,110 points
104 views
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 963 views
0 votes
0 answers
+4 votes
6 answers
0 votes
1 answer

ModuleNotFoundError: No module named 'tensorflow'

Hi@akhtar, To avoid this error, you can use ...READ MORE

answered Apr 21 in Machine Learning by MD
• 24,500 points
1,072 views
+1 vote
1 answer

ModuleNotFoundError: No module named 'mnist'

Hi@akhtar, This mnist package comes with keras module ...READ MORE

answered May 9 in Machine Learning by MD
• 24,500 points
125 views