How to Install Keras in Ubuntu 19.04 Disco GNU/Linux

March 23, 2019 | By thelinuxevangelist | Filed in: Tutorial.

Setting Up

  1. 2. Installing PIP

    How to Install Python PIP in Ubuntu GNU/Linux

    PIP Ubuntu Installation Guide
  2. 3. Installing Keras

    Then to Install Keras on Ubuntu

    Keras is a component of the TensorFlow suite and so it’s installed toghether with it…
    So now for TensorFlow Stable Release CPU-only execute:

    sudo pip install tensorflow

    For Nightly build CPU-only (unstable):

    sudo pip install tf-nightly

    GPU package for CUDA-enabled GPU cards:

    sudo pip install tensorflow-gpu

    Nightly build with GPU support (unstable):

    sudo pip install tf-nightly-gpu

    Finally, if instead you want to Install Only Keras:

    sudo pip install keras

  3. 4. cuDNN Installation

    (Recommended if you plan on running Keras on GPU)
    How to Install cuDNN in Ubuntu:

    Nvidia cuDNN Installation Guide
  4. 5. HDF5 & h5py Installation

    (Required if you plan on Saving Keras models to disk)
    To Setup HDF5

    sudo apt install libhdf5-100

    The for h5py do:

    sudo pip install h5py

  5. 6. graphviz & pydot Installation

    (Used by visualization utilities to plot model graphs)

    sudo apt install graphviz

    Finally, for pydot:

    sudo pip install pydot


Tags: , , , , , , , , , , , , ,