ubuntu下安装python-mysqldb折腾全过程

/usr/bin/python python2.6下 执行sudo python setup.py build和sudo python setup.py install出错(在/usr/bin/下面会缺少mysql_config文件)。 网上找到台下解决办法是需要先安装如下三个包: sudo apt-get install mysql-client sudo apt-get install libmysqlclient-dev sudo apt-get install python-dev 然后就发现/usr/bin/ More


python连接mysql

先在线python-mysql库 官方库地址 http://mysql-python.sourceforge.net/ 下载下来的包,进行解压 直接执行 python setup.py build 有时会遇到这样的问题: $ sudo python setup.py build building a Distribute egg in /Users/mc2/Downloads/MySQL-python-1.2.4b4 /Users/mc2/Downloads/MySQL-python-1.2.4b4/distribute-0.6.28-py2.7.egg s More