Python環境

itrue發表於2015-05-22

Install Atlas/Blas for numpy

Firstly, install atlas etc.

yum install blas blas-devel lapack lapack-devel atlas atlas-devel
ln -s /usr/lib64/atlas/___.so.3.0 $HOME/local/lib/___.so

Then update the .bashrc

export ATLAS=$HOME/local/lib/libatlas.so
export BLAS=$HOME/local/lib/libptf77blas.so
export LAPACK=$HOME/local/lib/liblapack.so

Then install/upgrade numpy

However, the yum tools may fail. We need to build from source code.

wget http://www.netlib.org/lapack/lapack.tgz
gunzip lapack.tgz 
tar xvf lapack.tar
wget wget http://downloads.sourceforge.net/project/math-atlas/Stable/3.10.2/atlas3.10.2.tar.bz2
bunzip2 -d atlas3.10.2.tar.bz2 
tar xvf atlas3.10.2.tar 

Make files with instructions in link to user guide of ATLAS

相關文章