postgresql and python in osx

by Dave Dash 10Aug08

I want to start dabbling with postgreSQL on OS X. After several SVN checkouts, binary packages, etc, I've realize the easiest path to success is just installing from fink unstable.

Running:

fink install psycopg2-py2.5

will get you everything you need, python, the pyscopg2 driver and even postgresql.

Unfortunately I had MacPython binary and a postgres binary which I couldn't easily install (and if anybody knows how to uninstall at least the former, I'm all ears). I decided to just merge the site-packages for both the fink installed python2.5 and the MacPython:

$ rm -rf /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/
$ ln -s /sw/lib/python2.5/site-packages /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/

Now if I installed more python packages via fink they will work in MacPython.


Where am I?

This is a single entry in the weblog.

"postgresql and python in osx" is filed under programming. It was published in August 2008.

August 2008
M T W T F S S
« Jul   Oct »
 123
45678910
11121314151617
18192021222324
25262728293031

Tags

&& &&

need more help

If you found our tutorials and articles to be useful, but are still looking for more hands on help, consider hiring us. Find out more about how Spindrop can help you.

 

1 Response to “postgresql and python in osx”


  1. 1 Lucian Posted October 7th, 2008 - 10:02 am

    Offtopic: macports should also work fine with installing!

Further Help

If you require more hands on assistance, we do offer affordable hands on support.

Leave a Reply


Comment guidelines: No spamming, no profanity, and no flaming. Inappropriate comments will be deleted outright.