numpy.distutils.system_info.BlasNotFoundError:
Blas (http://www.netlib.org/blas/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [blas]) or by setting
the BLAS environment variable.
Which tar do I need to download off this site?
I’ve tried the fortrans, but I keep getting this error (after setting the environment variable obviously).
The SciPy webpage used to provide build and installation instructions, but the instructions there now rely on OS binary distributions. To build SciPy (and NumPy) on operating systems without precompiled packages of the required libraries, you must build and then statically link to the Fortran libraries BLAS and LAPACK:
Execute only one of the five g77/gfortran/ifort commands. I have commented out all, but the gfortran which I use. The subsequent LAPACK installation requires a Fortran 90 compiler, and since both installs should use the same Fortran compiler, g77 should not be used for BLAS.
Next, you’ll need to install the LAPACK stuff. The SciPy webpage’s instructions helped me here as well, but I had to modify them to suit my environment:
Update on 3-Sep-2015:
Verified some comments today (thanks to all): Before running
make lapacklibedit themake.incfile and add-fPICoption toOPTSandNOOPTsettings. If you are on a 64bit architecture or want to compile for one, also add-m64. It is important that BLAS and LAPACK are compiled with these options set to the same values. If you forget the-fPICSciPy will actually give you an error about missing symbols and will recommend this switch. The specific section ofmake.inclooks like this in my setup:On old machines (e.g. RedHat 5), gfortran might be installed in an older version (e.g. 4.1.2) and does not understand option
-frecursive. Simply remove it from themake.incfile in such cases.The lapack test target of the Makefile fails in my setup because it cannot find the blas libraries. If you are thorough you can temporarily move the blas library to the specified location to test the lapack. I’m a lazy person, so I trust the devs to have it working and verify only in SciPy.