My specific question currently: where is pyodbc being installed by MacPorts? The overall question is: how does one install pyodbc on Mac OSX with MacPorts? Full story follows...
I'm using Mac OS X Lion (10.8.5) and Python 2.7 which is running from /Library/Frameworks/Python.framework/Versions/2.7/bin/python
. I had FreeTDS already installed (wrote a bash script using fisql
) but I also followed the instructions at http://www.cerebralmastication.com/2013/01/installing-debugging-odbc-on-mac-os-x/ and verified that UnixODBC is installed. Finally, I've run sudo port install py27-pyodbc
successfully... and yet when I try import pyodbc
, I get the error:
ImportError: No module named pyodbc
Sure enough, I do not see it when listing my available modules. I am fairly new to OSX, but I checked the symlinks in both /usr/bin
and /usr/local/bin
and they all point to the same place.
P.S. -- I'm still interested in the resolution of this for posterity, but I simply ran setup.py build
and setup.py install
from the pyodbc
source and voila!... works.