How do I install rpy2 for Python on my Mac?

I am trying to install rpy2 for Python on my Mac (OS X Snow Leopard)  I used MacPorts to do the initial port of rpy2.  But from there, I have absolutely no idea what I need to do.  I need step by step instructions.  I am a novice Mac user and still very wet behind the ears in terms of directories, installing programs, etc.  I would appreciate any help.

Many thanks!
Who is Participating?
pheidiusConnect With a Mentor Commented:
Make sure latest version of Xtools/Python/R is installed correctly,

Download and install easyinstall and let it find the right Egg for you. if it gets trickier  than that then i excerpted some tips below
If you are on a Mac OS X machine, you should just use the ~/Library/Python/2.x/site-packages directory as your custom installation location, because it is already configured to process .pth files, and EasyInstall already knows this.

Before installing EasyInstall/setuptools, just create a ~/.pydistutils.cfg file with the following contents (or add this to the existing contents):

another good link if easy instal get trickier

install_lib = ~/Library/Python/$py_version_short/site-packages
install_scripts = ~/bin

This will tell the distutils and EasyInstall to always install packages in your personal site-packages directory, and scripts to ~/bin. (Note: do not replace $py_version_short with an actual Python version in the configuration file! The distutils will substitute the correct value at runtime, so that the above configuration file should work correctly no matter what Python version you use, now or in the future.)

Once you have done this, you can follow the normal installation instructions and use easy_install without any other special options or steps.

(Note, however, that ~/bin is not in the default PATH, so you may have to refer to scripts by their full location. You may want to modify your shell startup script (likely .bashrc or .profile) or your ~/.MacOSX/environment.plist to include ~/bin in your PATH.
kmartinenkoAuthor Commented:
Thanks so much pheidius!  I was attempting to use easy install, but I did not place it in its own special directory...which would probably explain why it kept returning "file not found" in the terminal.  
All Courses

From novice to tech pro — start learning today.