安装依赖:
sudo apt-get install libmysqlclient-dev libmysqld-dev python-dev python-setuptools
安装MySQLdb
pip install MySQL-python
安装依赖:
sudo apt-get install libmysqlclient-dev libmysqld-dev python-dev python-setuptools
安装MySQLdb
pip install MySQL-python