centos6.5 安装Python-mysqldb


centos6.5下安装python-mysqldb模块


# yum install -y python-devel mysql-devel openssl-devel zlib-devel


# wget http://sourceforge.net/projects/mysql-python/files/mysql-python-test/1.2.4b4/MySQL-python-1.2.4b4.tar.gz


# tar zxvf MySQL-python-1.2.4b4.tar.gz

# cd MySQL-python-1.2.4b4

# python setup.py build

# python setup.py install


wKiom1aKHxTBd9OjAAAgAozI2Xo090.png


导出模块,没有报错就说明安装成功了。



转自:http://tommyhu.cn/centos65-python-MySQLdb/ 

你可能感兴趣的:(mysql,linux,python,centos)