Home > Mac, Marsyas, Python > OSX: Python and friends (from Fink)

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)
  • iPython2.5
  • scipy-py25
  • scipy-core-py25 (aka NumPy)
  • matplotlib-py25

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:

export PATH=/sw/bin:$PATH

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.

Advertisements
Categories: Mac, Marsyas, Python Tags: , , , ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: