MySQLdb, Linux, and Import Error

Jeff Bauer jbauer at rubic.com
Mon Aug 21 13:10:30 EDT 2000


Ian Maurer wrote:
> Then I tried to import the newly installed module but it failed...

Put the modules somewhere that Python can find them.  I have
MySQLdb.py* & _mysqlmodule.so files in the site-packages
directory, e.g. /usr/local/lib/python1.5/site-packages.

This is especially usefull for cgi scripts, where
you don't want to maintain PYTHONPATH or sys.path in 
the scripted environment.

Jeff Bauer
Rubicon Research




More information about the Python-list mailing list