Fortunately, Python's package installer is pretty smart. SO, I created ~/python, and then used ` python setup.py install --root ~/python` to install each module I wanted to install. Next, in my actual code, I used the following to ensure python could find the modules...
import sys
sys.path.append( '/home/hostedby/python/usr/lib64/python2.3/site-packages/' )
sys.path.append( '/home/hostedby/python/usr/lib/python2.3/site-packages/' )
One note: ADOdb requires MySQLdb, but the errors you get from it are completely non-sensical and do not give you even the slightest indication about the inter-dependancy. You could have figured this out by reading the README ,but who does that?
No comments:
Post a Comment