How to install Keras in Python 3.6?

Viewed 21915

I'm having trouble installing the Keras library for Python 3.6. Whenever I try to install Keras, it is throwing an error and when I searched on the internet, Keras had been released for up to Python 3.5. Does anyone have a solution for this?

4 Answers

Follow this method if you have Anaconda and Python version 3.6.

First, create a new conda environment,

conda create -n keras python=3.5

Now activate it,

source activate keras

and install Keras,

conda install keras

Test if it works,

    $ python 
>>>import keras

You will get the following message if it was successful:

Using TensorFlow backend.

Click here to see Mike Müller's answer

Follow the below steps , Tensorflow dosnt support py3.7 as of now , so 3.6 is better ,
I recommend using environment , (venv , conda(preferred) ),

For conda

conda create -n keras python=3.6
source activate keras
conda install tensorflow keras
#for faster installation
pip install keras


For virtualenv

virtualenv -p python3 keras
source keras/bin/activate
pip install keras tensorflow numpy
Related