On Oct 6, 2011, at 07:19, David Rippel wrote: > I am trying to install psycopg2 using MacPorts (on MacOS 10.6.8). I have > installed Python2.7, and used the following command to install psycopg2: sudo > port install py27-psycopg2 > > The installation runs OK and finishes, but when I try to import psycopg2 on a > python shell it fails. I did a little more digging, it seems that MacPorts > has installed another version of python2.7 (/opt/local/bin/python2.7) and > when I run it on that installation it works. > > Why did MacPorts thought it needs to install another version of python2.7?
That's our policy: http://trac.macports.org/wiki/FAQ#ownlibs > Also, how do I get MacPorts to install on my original Python2.7 You don't: http://trac.macports.org/wiki/FAQ#syslibs > (/Library/Frameworks/Python.framework/Versions/2.7/bin/python)? That's actually the MacPorts python 2.7 right there, assuming your frameworks_dir is set to its default value of /Library/Frameworks. _______________________________________________ macports-users mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
