当前位置:Gxlcms > mysql > 安装PyhtonMySQLdb

安装PyhtonMySQLdb

时间:2021-07-01 10:21:17 帮助过:10人阅读

安装很简单,几步就好 wget -q http://peak.telecommunity.com/dist/ez_setup.pypython ./ez_setup.pywget http://downloads.sourceforge.net/project/mysql-python/mysql-python/1.2.3/MySQL-python-1.2.3.tar.gztar -zxvf MySQL-python-1.2.3.tar.gz cd My

安装很简单,几步就好

wget -q http://peak.telecommunity.com/dist/ez_setup.py
python ./ez_setup.py
wget http://downloads.sourceforge.net/project/mysql-python/mysql-python/1.2.3/MySQL-python-1.2.3.tar.gz
tar -zxvf MySQL-python-1.2.3.tar.gz 
cd MySQL-python-1.2.3
python setup.py install

可能出现问题1:error: command ‘gcc’ failed with exit status 1
解决:yum install python-devel

人气教程排行