How to make sure the numpy BLAS libraries are available as dynamically-loadable libraries? How to make sure the numpy BLAS libraries are available as dynamically-loadable libraries? numpy numpy

How to make sure the numpy BLAS libraries are available as dynamically-loadable libraries?


After downloading the Anaconda distro of python libraries, I just encountered the same issue on Ubuntu 12.04 LTS 64-bit. Pointing Theano to the directory containing libblas.so took care of it.

$ THEANO_FLAGS=blas.ldflags="-L/usr/lib/ -lblas" python rbm.py


With ubuntu, in the package manager, libblas.so comes with the libblas3gf package.If somehow it doesn't create libblas.so, but creates libblas.so.X, manually create a symlink like:

cd /usr/lib64sudo ln -s libblas.so.3gf libblas.so

NB: This has been working fine for me, but read the comment below though. And keep in mind this package will not be optimized to your specific hardware (read other answers that suggest ATLAS for instance).


In your case you should look in /usr/lib64 and see if libblas, etc. are available as .so or .so.X files.

Recompiling BLAS is not trivial, but you can maybe try installing the relevant ATLAS packages for your distribution.