Imdadul Haque
Imdadul Haque

Reputation: 1855

ModuleNotFoundError: No module named keras

keras module is not found !

First of all I install Anaconda3-2019.03 and then I run

`conda install python=3.6.0`

Need to use python 3.6.0 version instead of Python 3.7.0 it shows an error,

Preparing transaction: done
Verifying transaction: failed

For ignoring this error then i follow another way and that's are below,

conda create --name py36 python=3.6
conda activate py36

It successfully installed and then I install tensorflow and that's command is below,

pip install tensorflow

It also successfully installed and then I run keras in jupyter notebook but it show an error,

import keras

error below,

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-2-88d96843a926> in <module>
----> 1 import keras

ModuleNotFoundError: No module named 'keras'

Note: I try to solve this error, then I install keras using below command,

pip install keras 

Now help me please for solving this problem.

Upvotes: 0

Views: 3673

Answers (1)

Sayan Dey
Sayan Dey

Reputation: 856

As of TensorFlow 2.0, one keras is available inside tensorflow, from tensorflow import keras

If you want to use original keras (although both have same working), conda activate py36 then python3.6 -m pip install keras now you can do import keras in your code.

Upvotes: 1

Related Questions