Question

I am trying to install the SciPy package on Red Hat Enterprise Linux Server release 6.3. However, it is failing.

The version of Python I am using is 2.6, however it seems to require 2.4. Is there another version of SciPy that is compatible with 2.6? If 2.4 is required, any suggestions on how to get that? I followed the directions on the python webpage but they seem to be out of date. It also requires f2py, which I am unsure of how to get.

Any suggestions for easier installation? I had been following the instructions here.

Thanks!

Was it helpful?

Solution 2

I was able to solve this problem by downloading the latest version of NumPy (building and installing that from the source since the one on the Red Hat package manager was a couple versions outdated), then installing scipy (via the setup.py scipy file I had downloaded).

OTHER TIPS

Enable the EPEL repository: https://fedoraproject.org/wiki/EPEL

After that, just "yum install scipy"

A problem I ran into when installing SciPy from setup.py on RHEL 5 was undefined _gfortran symbols.

I found out this is due to a mismatch in the FORTRAN compiler used -- I had used the gfortran compiler to build the ATLAS/BLAS libraries but was using the g77 compiler to build SciPy

If you have this problem, fix it by specifying the FORTRAN version to use with setup. In my case, to use the gfortran compiler:

python setup.py build --fcompiler=gnu95 --force

The --force flag was necessary to correct the build with the wrong compiler.

To list your FORTRAN compilers available use:

python setup.py build --help-fcompiler

After that,

python setup.py install

as usual.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top