[PYTHON] Install Theano on Ubuntu 12.04

Basically, refer to http://deeplearning.net/software/theano/install_ubuntu.html#install-ubuntu.

Click here for how to install Mac with homebrew (http://qiita.com/items/da475b4cc8e5875c73d0). Somehow, MBP of Core i5 is faster than Xeon a little while ago, so if you do not use GPGPU, you will feel like using MLP. .. ..

Install with apt-get

$ sudo apt-get install python-numpy python-scipy python-dev python-pip python-nose g++ libopenblas-dev git

$ sudo pip install Theano

Note that in Ubuntu 12.04, if you include libatlas-dev, the dependency will be broken.

Each version is as follows

Numpy: 1.6.1
Scipy: 0.9.0
Test packages

Two Scipy tests fail. test_io.test_imread is a known issue and is probably okay. http://stackoverflow.com/questions/9239989/error-when-testing-scipy test_morestats.TestAnderson is also a known issue, you can apply the following patch

https://github.com/scipy/scipy/commit/89c88431e648369d4a15b4fd4e762a28eb86abd8#diff-0 http://comments.gmane.org/gmane.comp.python.scientific.user/30283

If import numpy fails

ImportError: /usr/lib/liblapack.so.3gf: undefined symbol: ATL_chemv

If you see, please follow the steps below. Because the same .so can be installed in multiple packages and the dependencies cannot be resolved

$ sudo apt-get remove libopenblas-base
Speed test Theano/BLAS on Ubuntu 12.04

http://stackoverflow.com/questions/8917977/installing-lapack-for-numpy

By the way, lapack, atlas, and openblas are around the demon gate. For the time being, if you can use apt-get or yum, you should leave it to the package management system even if you use EPEL. If you try to install from source without skills, it will collapse for a day. Useless.

speed test

Do a speed test with the following command to see if it works with blas.

$ python /usr/local/lib/python2.7/dist-packages/theano/misc/check_blas.py

Deep Learnin test

DeepLearning examples $ git clone http://github.com/lisa-lab/DeepLearningTutorials

You can now download the example from Deep Learning Tutorials.

See Getting Started for the characteristics of the data used, and here for the basic methods. please.

Recommended Posts

Install Theano on Ubuntu 12.04
Install TensorFlow on Ubuntu
Install PySide2 on Ubuntu
Install JModelica on Ubuntu
Install Python 3.3 on Ubuntu 12.04
Install angr on Ubuntu 18.04
Install pip / pip3 on Ubuntu
Install GoLand IDE on Ubuntu
wsl Install PostgreSQL on Ubuntu 18.04
[ROS] Install ROS (melodic) on Ubuntu (18.04)
Install Caffe on Ubuntu 14.04 (GPU)
Install Docker on WSL Ubuntu 18.04
Install CUDA10.1 + cuDNN7.6.5 + tensorflow-2.3.0 on Ubuntu 18.04
Install Python 3.8 on Ubuntu 18.04 (OS standard)
Install Caffe on Ubuntu 14.04 (CPU mode)
Install Mecab and mecab-python3 on Ubuntu 14.04
Install and run dropbox on Ubuntu 20.04
Install OpenCV and Chainer on Ubuntu
Install CUDA 8.0 and Chainer on Ubuntu 16.04
Install Python 3.8 on Ubuntu 20.04 (OS standard)
Install fabric on Ubuntu and try
Install Python 3.9 on Ubuntu 20.04 (OS standard?)
Install confluent-kafka for Python on Ubuntu
Install Python 2.7 on Ubuntu 20.04 (OS standard?)
How to install Go on Ubuntu
ROS study # 1 Install ros-noetic on ubuntu 20.04
Shebang on Ubuntu 20.04
Theano on Anaconda
Install ubuntu on 32bit UEFI Ultra Notebook
Install Caffe running 3D-CNN on clean Ubuntu 14.04
How to install php7.4 on Linux (Ubuntu)
Install pyenv and Python 3.6.8 on Ubuntu 18.04 LTS
Install mecab on Marvericks
Install Tensorflow on Mac
I can't install Dask with pip on Ubuntu
Install python on WSL
Install Faiss on CentOS 7
Install pyenv on mac
Install pip on Mavericks
Install Python on Pidora.
Install mongodb on termux
Install Scrapy on python3
Install python package in personal environment on Ubuntu
Install docker on Fedora31
[Procedure memo] Install Python3 + OpenSSL locally on Ubuntu
Install numba on CentOS 7.2
Install Ansible on Mac
Install Python on Mac
Install Python 3 on Mac
Install Plone (4.3.6) on MacOSX (10.10.3)
Install Python3.4 on CentOS 6.6
Install Docker (Ubuntu 18.04 LTS)
Install gensim on Marvericks
Install the latest Cuda + CuDNN on Ubuntu 18.04 @ Spring 2020
Install Anaconda on Windows 10
Install numpy on Marvericks
Install python on windows
Install enebular-agent on Chromebook
Install pycuda on Windows10
Install mecab-python on CentOS
Install Python 2.7.3 on CentOS 5.4