> CentOS > CentOS教程 >

centos6.5下安装python-mysqldb模块

centos6.5安装python-MySQLdb
命令如下:
view plainprint?
  1. #yum install python-devel mysql-devel zlib-devel openssl-devel  
  2.  
  3. #wget <a href="http://downloads.sourceforge.net/project/mysql-python/mysql-python-test/1.2.4b4/MySQL-python-1.2.4b4.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fmysql-python%2F&ts=1364895531&use_mirror=nchc" target="_blank">http://downloads.sourceforge.net/project/mysql-python/mysql-python-test/1.2.4b4/MySQL-python-1.2.4b4.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fmysql-python%2F&ts=1364895531&use_mirror=nchc</a>  
  4.   
  5. #tar zxvf  MySQL-python-1.2.4b4.tar.gz  
  6.  
  7. #cd MySQL-python-1.2.4b4  
  8.  
  9. #python setup.py build  
  10.  
  11. #python setup.py install  

安装过程:

python-MySQLdb未安装状态


python-MySQLdb安装成功


python-MySQLdb安装相关命令




(责任编辑:IT)