Mike Mike - 1 month ago 14
Python Question

Trouble installing SciPy on windows

I have Python 2.7 and NumPy installed. I have downloaded pre-built binaries for SciPy, but the install script fails with this error:

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.

I really don't know enough about this to fool with it. I assumed it was a straightforward install process, but doesn't appear to be. I googled for the BLAS environment variable, but couldn't find anything that seemed appropriate. Any help is appreciated.

Mike

EDIT: Nevermind, I found an unofficial installer exe.

Answer

To install SciPy on Windows you have to have a fortran compiler installed. The SciPy project recommends MinGW. See Building and installing SciPy. To install MinGW follow these instructions: HOWTO Install the MinGW (GCC) Compiler Suite. Then before you run pip or easy_install to install SciPy make sure that you have MinGW added to your path. See MinGW Installation Notes - Environmental Variables

A side note, It would be easier to use either the Enthought Distribution (part of the initial install) or the Active State Distribution (through pypm 32-bit only) as they already have precomiled binary packages for SciPy. Or, you could use the SciPy precompiled binary package installer for Windows.

Comments