easy_install numpy
easy_install scipy
(provided that you have the python-distutils package installed). That's great. But... it doesn't work! At least not on openSUSE. I could convince numpy to install somehow. I don't remember exactly, I think I at least needed to install gfortran, maybe also blas and lapack from the scientificlinux-repository in the build service.
For scipy then it was a little bit more work. It kept complaining that it did not find BLAS and LAPACK, even though I edited numpy's site.cfg file so that it should be aware of the location of the shared libs.
It turned out that to install scipy I had to:
- Download BLAS sources and unpack them, e.g. to $HOME/Apps/BLAS
- edit make.inc in that directory, changing the FORTRAN line to
FORTRAN = gfortran
- build BLAS by calling make in the BLAS dir
- DL and unpack LAPACK to $HOME/Apps/lapack-3.2
- edit make.inc.example in that dir, changing the BLASLIB line to
BLASLIB = $(HOME)/Apps/BLAS/blas$(PLAT).a
and saving that file as make.inc - build LAPACK by typing make in the lapack dir.
- Download scipy, unpack it and start the build process:
python setup.py install
That takes quite a while. It seems it builds LAPACK and BLAS again, so maybe you don't have to build it first, but I guess you need at least to make the appropriate modifications to the respective make.inc files. Comments on that are welcome.
But most important: it finally worked :)
Update: At least I thought it worked. It didn't :D Problem was that import scipy produced a symbol not found error. Maybe adjusting ldconfig's path could fix this, but I don't have time to look into this. Installed numpy & scipy from the scientificLinux repo (link see above).
2 Kommentare:
I want to installing scipe on my OpenSUSE, thanks already to guide how to install.
Hi Beta,
note that in the meantime scipy is available from the distribution repositories. I use scipy from the "education" repo.
http://software.opensuse.org/search is always helpful.
Kommentar veröffentlichen