1.首先要安装easy_install
或者
2.接着安装MySQLdb模块
1.如果报错
这是因为缺少libmysqlclient-dev
以Ubuntu为例:
假如已经安装debian / ubuntu:sudo apt-get install mysql
mysql-config是在不同的模块,并不在mysql里面。
执行
centos则执行
2.如果报错
执行
或者
这是因为缺少libmysqlclient-dev
以Ubuntu为例:
假如已经安装debian / ubuntu:sudo apt-get install mysql
mysql-config是在不同的模块,并不在mysql里面。
执行
centos则执行
执行