python安装mysql库

1
2
3
4
5
6
//首先要安装sqllient库
sudo apt-get install libmysqlclient-dev
//其次安装python-dev
sudo apt-get install python-dev
最后安装python mysql库
sudo pip install MySQL-python