0.已默认安装Python, pip, python-dev
1.安装MySQL
sudo apt-get install mysql-serversudo apt-get install mysql-client
2.关键一步(很容易忘掉)
sudo apt-get install libmysqlchient-dev
3.安装MySQLdb
pip install mysql-python
0.已默认安装Python, pip, python-dev
1.安装MySQL
sudo apt-get install mysql-serversudo apt-get install mysql-client
2.关键一步(很容易忘掉)
sudo apt-get install libmysqlchient-dev
3.安装MySQLdb
pip install mysql-python