Install Theano under Linux

Source: Internet
Author: User
Tags theano

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

    1. NumPy (~30s):
      " import NumPy; Numpy.test () "

    2. SciPy (~1m):
      " import scipy; Scipy.test () "

    3. Theano (~30m):
      " import Theano; Theano.test () "

Install Theano under Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.