Install Keras Python Library

In this tutorial, we shall learn to install Keras Python Neural Network Library on Ubuntu. It is capable of running on top of MXNet, Deeplearning4j, Tensorflow, CNTK or Theano.

Prerequisites

We shall use Anaconda distribution of Python for developing Deep Learning Applications with Keras.

So, we shall Install Anaconda Python.

ADVERTISEMENT

Install Keras

To install Keras python library, open a Terminal and run the following pip command.

$ pip install keras

Console/Terminal Output

~$ pip install keras
Collecting keras
  Downloading Keras-2.1.2-py2.py3-none-any.whl (304kB)
    100% |????????????????????????????????| 307kB 855kB/s 
Requirement already satisfied: scipy>=0.14 in /usr/lib/anaconda3/lib/python3.6/site-packages (from keras)
Requirement already satisfied: numpy>=1.9.1 in /usr/lib/anaconda3/lib/python3.6/site-packages (from keras)
Requirement already satisfied: six>=1.9.0 in /usr/lib/anaconda3/lib/python3.6/site-packages (from keras)
Requirement already satisfied: pyyaml in /usr/lib/anaconda3/lib/python3.6/site-packages (from keras)
Installing collected packages: keras
Successfully installed keras-2.1.2

Conclusion

Keras Python Library is successfully installed.