Probably you installed a binary version of Zope which comes with -it's own Python interpreter. You will have to compile MySQLdb against +its own Python interpreter. You will have to compile MySQLdb against that particular Python installation. Find out where it's python binary lives and use that to run setup.py.