Keras is a minimalist and highly modular neural networks library, written in Python and capable of running on top of TensorFlow (the source software library for numerical computation released by Google) as well as Microsoft Cognitive Toolkit (previously known as CNTK), Theano, or MXNet. Its primary developer and maintainer is François Chollet, a machine learning researcher working at Google:

  • Website:
  • Version at the time of print: 2.2.0
  • Suggested install command: pip install keras

As an alternative, you can install the latest available version (which is advisable since the package is in continuous development) by using the following command:

$> pip install git+git://

Get Python Data Science Essentials - Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.