centos5.8安装Mysqldb

1.下载MySQL-python-1.2.3.tar.gz

2.解压

3.执行python setup.py build

   错误1:找不到setuptool,解决办法:装之

   错误2:报编译错,找不到xxx.h,xxx.c等等。解决办法:sudo yum install python-devel

, sudo yum install mysql-devel

4.执行sudo python setup.py install

完成!

你可能感兴趣的:(centos5.8安装Mysqldb)