更新Theano

根据你如何安装Theano,选择下面三个部分中的一个。

你应该经常更新,bug会定期修复,新功能的加入甚至更频繁!

Stable Installation

The following command will update only Theano:

<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

如果你用yum/apt-get安装NumPy/SciPy,用pip/easy_install更新NumPy/SciPy并不总是一个好主意。这可能使Theano因BLAS的问题而崩溃。发布中包含的NumPy/SciPy版本有时与更新版本的BLAS相关联。使用yum/apt-get/pip/easy_install安装NumPy/SciPy开发包时不会与新版本重新一起编译。要解决可能的崩溃,你可以按如下方式清除Theano缓存:

theano-cache clear

安装最前沿的版本

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

<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

如果你用yum/apt-get安装NumPy/SciPy,用pip/easy_install更新NumPy/SciPy并不总是一个好主意。这可能使Theano因BLAS的问题而崩溃。发布中包含的NumPy/SciPy版本有时与更快版本的BLAS相关联。使用yum/apt-get/pip/easy_install安装NumPy/SciPy开发包时不会与新版本重新一起编译。要解决可能的崩溃,你可以按如下方式清除Theano缓存:

theano-cache clear

Developer Installation

要将你的库更新到最新版本,请将目录更改(cd)为你的Theano文件夹,然后执行以下命令:

Warning

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

git pull --rebase