Installing SciPy on Red Hat

大兔子大兔子 提交于 2019-12-13 02:43:13

问题


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!


回答1:


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

After that, just "yum install scipy"




回答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).




回答3:


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.



来源:https://stackoverflow.com/questions/12796138/installing-scipy-on-red-hat

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!