Http://deeplearning.net/software/theano/install_ubuntu.html#install-ubuntu
The above link is the official website installs the tutorial
Installing Theano in Ubuntu is a lot easier to install on Windows.
If you are an Ubuntu 16.04 system
The installation process is as follows:
sudo apt-GetInstall python-numpy python-scipy python-dev python-pip python-nose g++ libopenblas-Dev gitsudo pip install theano# cuda7.5Don'T support the default g++ version. Install an supported version and make it the default.sudo apt-GetInstall g++-4.9sudo update-alternatives--INSTALL/USR/BIN/GCC gcc/usr/bin/gcc-4.9 -sudo update-alternatives--INSTALL/USR/BIN/GCC gcc/usr/bin/gcc-5 Tensudo update-alternatives--install/usr/bin/g++ g++/usr/bin/g++-4.9 -sudo update-alternatives--install/usr/bin/g++ g++/usr/bin/g++-5 Tensudo update-alternatives--install/usr/bin/cc CC/USR/BIN/GCC -sudo update-alternatives--Setcc/usr/bin/Gccsudo Update-alternatives--install/usr/bin/c++ C + +/usr/bin/g++ -sudo update-alternatives--SetC + +/usr/bin/g++# work around a glibc Bugecho-E"\n[nvcc]\nflags=-d_force_inlines\n">> ~/.theanorc
If you are Ubuntu 11.10 to 14.04 version
The installation process is as follows:
sudo apt-get install python-numpy python-scipy python-dev python-pip python-nose g++ libopenblas-Dev Gitsudo pip Install Theano
If your version is Ubuntu 11.04
The installation process is as follows:
sudo apt-get install python-numpy python-scipy python-dev python-pip python-nose g++ git libatlas3gf-base
libatlas-devsudo pip install Theano
The above installation is based on Python2
On the version of Ubuntu 14.04 if you want to use Python3 please put the above
sudo apt-get install python-numpy python-scipy python-dev python-pip python-nose g++ libopenblas-dev git
Modified to:
sudo apt-get install python3-numpy python3-scipy python3-dev python3-pip python3-nose g++ libopenblas-dev git
Verify that the Python package has been successfully installed using the following code
- NumPy (~30s):
" import NumPy; Numpy.test () "
- SciPy (~1m):
" import scipy; Scipy.test () "
- Theano (~30m):
" import Theano; Theano.test () "
Install Theano under Linux