写的非常好,可以解决问题: windows下:http://blog.csdn.net/wklken/article/details/7253245 linux下:http://blog.csdn.net/wklken/article/details/7271019 另外,这篇作为总体配置方案非常好:http://lbxhappy.iteye.com/blog/816074 MySQL for python编译好的版本,下载列表,:http://www.codegood.com/download…
切换目录: cd /usr/local/src/ 一.下载资源 wget http://sourceforge.net/projects/mysql-python/files/mysql-python/1.2.3/MySQL-python-1.2.3.tar.gz 二.解压 tar zxvf MySQL-python-1.2.3.tar.gz 三.安装 cd MySQL-python-1.2.3 vim site.cfg 配置一下mysql_config,我的在/usr/bin/下,保存并退出…