Updating Theano

Follow one of these three sections depending on how you installed Theano.

You should update frequently, bugs are fixed on a very regular basis, and features areadded even more frequently!

Stable Installation

The following command will update only Theano:

  1. <sudo> pip install <--user> <--no-deps> theano
  • Use sudo for a root installation.
  • Use user for a user installation without admin rights. It will install Theano in your local site-packages.
  • Use no-deps when you don’t want the dependencies of Theano to not be installed through pip. This is important when they have already been installed as system packages.

Warning

If you installed NumPy/SciPy with yum/apt-get, updating NumPy/SciPywith pip/easy_install is not always a good idea. This can make Theanocrash due to problems with BLAS. The versions ofNumPy/SciPy in the distribution are sometimes linked against fasterversions of BLAS. Installing NumPy/SciPy withyum/apt-get/pip/easy_install won’t install the development packageneeded to recompile it with the fast version.To fix a possible crash, you can clearthe Theano cache like this:

  1. theano-cache clear

Bleeding-Edge Installation

The following command will update your bleeding-edge version of Theano

  1. <sudo> pip install <--user> <--no-deps> git+https://github.com/Theano/Theano.git#egg=Theano
  • Use sudo for a root installation.
  • Use user for a user installation without admin rights. It will install Theano in your local site-packages.
  • Use no-deps when you don’t want the dependencies of Theano to not be installed through pip. This is important when they have already been installed as system packages.

Warning

If you installed NumPy/SciPy with yum/apt-get, updating NumPy/SciPywith pip/easy_install is not always a good idea. This can make Theanocrash due to problems with BLAS. The versions ofNumPy/SciPy in the distribution are sometimes linked against fasterversions of BLAS. Installing NumPy/SciPy withyum/apt-get/pip/easy_install won’t install the development packageneeded to recompile it with the fast version.To fix a possible crash, you can clearthe Theano cache like this:

  1. theano-cache clear

Developer Installation

To update your library to the latest revision, change directory (cd)to your Theano folder and execute the following command:

Warning

The following assumes you have knowledge of git and know how to do a rebase.

  1. git pull --rebase