How to Install and Import Keras in Anaconda/Jupyter Notebooks

Installing Keras in Anaconda

So, first I did what I usually do to install any library.

pip install keras
conda update wrapt 
pip install tensorflow
pip install tensorflow-gpu==1.14
pip install tensorflow ==1.14

A Working Solution:

Step 1: Create a new environment

Open the terminal and create a new environment. I have named my environment “ keras_env”.

conda create --name keras_env

Step 2: Activate the environment

Now, activate the environment created above.

conda activate keras_env

Step 3: Install Keras

To install Keras, we need to type the below command:

conda install -c anaconda keras

Data Scientist, Story Teller

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store