For more information, see http://deeplearning.net/software/theano/install.html. For more information, install pipns first. Installation method, see google install Theano prerequisites: 1, python2.6 or above; 2, BLAS3, numpy (dependent BLAS, although no reference: http://deeplearning.net/software/theano/install.html
To install python Software Conveniently, install pip first.
For the installation method, see google
Prerequisites for installing Theano:
1. python 2.6 or above;
2, BLAS
3, numpy (dependent on BLAS, although not installed, but cannot use BLAS acceleration)
4. SciPy (dependent on BLAS)
The BLAS installation method is as follows:
Blas, blas-devel, lapack, lapack-devel, atlas, and atlas-devel must be installed,
Can be installed through yum;
Cblas is not sure whether to follow the rules;
To install BLAS in redhat, follow these steps:
1. install the fortran compiler using yum install gcc-gfortran.
2. download BLAS and CBLAS: http://www.netlib.org/blas/and blas.tgzand cblas.tgz.
3. install BLAS, cd to the BLAS directory, and then make it directly. after compilation, a blas_LINUX.a file is generated;
4. link the blas library file: ln-s xxxxxxx/BLAS/blas_LINUX.a/usr/local/lib/libblas.
5. install CBLAS and cd in the CBLAS directory and run MakeFile. in to MakeFile. in. use this command to create a link: ln-s Makefile. LINUX Makefile. in; then modify MakeFile. in, place the BLLIB = line to point to the blas_LINUX.a file on the right of the equal sign, save the file, and enter make all. after compilation, The cblas_LINUX.a file is generated under lib;
6. make a quick connection to the library file under/usr/local/lib.
Ln-s xxxxxx/CBLAS/lib/cblas_LINUX.a/usr/local/lib/libcblas.
----
I just found that you can use yum install blas to install it. I will, btw will also need to install blas-devel.
In addition to blas packages, lapack, lapack-devel, atlas, and atlas-devel must be installed. Fortunately, yum can be installed.
Run the following code:
Shell code
- Yum install blas-devel lapack-devel atlas-devel -- nogpgcheck
Note: The installation package of atlas is not atlas-c ++. x86_64 atlas-c ++-devel. x86_64. What are the two interfaces.
Install numpy:
Run pip install numpy directly;
Install SciPy directly by pip install SciPy.
Then install Theano. pip install Theano directly.
Verify that numpy depends on BLAS compilation. use the following code to test it:
>>> Import numpy
>>> Id (numpy. dot) = id (numpy. core. multiarray. dot)
False
If the result is False, BLAS acceleration is successfully relied on. if the result is true, the python implementation is not accelerated.