Installing Keras on ArchLinux

Guide based on Keras documentation.

Installing additional PIP packages

Switch into our tensorflow virtualenv, and install the following packages:

HDF5 and h5py (required if you plan on saving Keras models to disk). graphviz and pydot (used by visualization utilities to plot model graphs).

sudo pacman -S graphviz
pip install pydot h5py

Install Keras

Afterwards, just run

pip install keras

And then try to

import keras

If it works it should output a line saying ‘Using TensorFlow backend’.