Installing mysql driver for Python on Mac OS X
10.10.2008
- Install MySql normally
- Download MySQL-python-1.2.2 from sourceforge
export PATH=/usr/local/mysql-5.1.26-rc-osx10.5-x86/bin:$PATH- Edit _mysql.c
/* #ifndef uint */ /* #define uint unsigned int */ /* #endif */ python setup.py buildsudo python setup.py install
Credit where credits due:
Setting the env
Modifying the source