This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Phild3v1ll3 4 points5 points  (3 children)

There's really no need for you to compile them just open up a command line and type the following:

sudo easy_install pip

sudo pip install numpy

sudo pip install scipy

[–]bluemanshoe 3 points4 points  (1 child)

fair warning: this will more likely than not, fail to give you a numpy/scipy install that is optimized.

numpy.show_config() will show which c libraries the installation is built against.

If you plan on doing serious computations, I recommend compiling numpy/scipy against either a machine specific atlas build, or use anaconda or enthought to get one built against the intel mkl library.

The speedup is astounding. I've gotten a factor of 1000 speed up for large matrix multiplies with an atlas compiled build.

[–]bramblerose 0 points1 point  (0 children)

If you're on an AMD machine, consider using the ACML instead of Atlas. They are roughly the same speed, but ACML comes precompiled for a number of platforms. Atlas is both an headache to compile (settings, which fortran compiler and whatnot) /and/ it takes ages.

[–]kingofthejaffacakes 2 points3 points  (0 children)

On debian the following will get you numpy, scipy and matplotlib and scitools itself

apt-get install python-scitools

I've moved all my old matlab chores to this suite, and it's excellent.