OSX: Python and friends (from Fink)
So I finally found the time (and need!) to properly install Python in my OSX10.5.6 box, together with some nice modules I’ll need for some of my current research/development work. I’ve followed a quite instructional site (see it here and here) on how to do it, but for Marsyas you’ll only need the following modules:
- python2.5 (from Fink, and not the one provided by Apple in OSX, which is a kind of old and hard to manage version of python)
- scipy-core-py25 (aka NumPy)
After you install all the modules (go grab a coffee because they will take a substantial amount of time to build!), you still need to make sure you call the Fink’s installed python and not the OSX OEM python install (you can ask OSX which python is currently being used in the terminal with “$ which python”). Fink installs python at /sw/bin/python2.5, so in order call it from anywhere you should update you .bash_profile with:
This way, you can call python2.5 from anywhere (the same applies to any other Fink installed tool). If you want to drop the 2.5 part, just create a symbolic link to python2.5 in /sw/bin, like this:
$ cd /sw/bin
$ ln -s python2.5 python
And that’s it!
I’ll now move on to play with Marsyas and SWIG (which gets installed for you by Fink when installing the modules above) and probably report back here in case I find any troubles/tips.