Install Python with iPython, Numpy, Scipy, Matplotlib on Leopard

[now out of date, the macinscience website no longer exists. see a new method for installing python 2.6 with these packages here]

So previously I went through this epic effort to install matplotlib and associated Python stuff on my mac with Leopard. Some time after I noticed that it might be possible to do it in a much easier way. I’ve just done it and it’s great!

Install IDLE if you want it. I don’t even know what it does, but I do know it works. Download the MacPython package, open it up and install the applications. Delete the launcher (and and the build applet if you have Xcode) since you have them already. Part of the IDLE install instructions are to add symbolic link: sudo ln -s /System/Library/Frameworks/Python.framework/ /Library/Frameworks/Python.framework

Get the scipy superpack. This guy in NZ (but not a NZer sadly) has made a script that gets everything for you and puts it in /Library/Python/2.5/site-packages for you. When I installed it it was almost right. As noted in the comments, remove the pyreadline egg and get one with the gnu readline in it. Edit the easy-install.pth file (using sudo) and change the line to reflect the new readline egg.

You’re done!