Python:MySQLdb安装问题
Mysql版本5.0.77Python:MySQLdb安装问题,python,Python,Mysql版本5.0.77 Python版本2.5 #轻松安装MySQL-python 当我尝试安装时,出现以下错误: _mysql.c:2331: error: â_mysql_ConnectionObjectâ has no member named âopenâ _mysql.c:2338: error: â_mysql_ConnectionObjectâ has no member named âconverterâ _mysql.c:2345: error: â_mysql_Conne
Python版本2.5 #轻松安装MySQL-python 当我尝试安装时,出现以下错误:
_mysql.c:2331: error: â_mysql_ConnectionObjectâ has no member named âopenâ
_mysql.c:2338: error: â_mysql_ConnectionObjectâ has no member named âconverterâ
_mysql.c:2345: error: â_mysql_ConnectionObjectâ has no member named âconnectionâ
_mysql.c:2352: error: â_mysql_ConnectionObjectâ has no member named âconnectionâ
_mysql.c:2359: error: â_mysql_ConnectionObjectâ has no member named âconnectionâ
_mysql.c:2422: error: â_mysql_ResultObjectâ has no member named âconverterâ
_mysql.c:2422: error: initializer element is not constant
_mysql.c:2422: error: (near initialization for â_mysql_ResultObject_memberlist[0].offsetâ)
_mysql.c:2444: error: â_mysql_ConnectionObjectâ has no member named âopenâ
error: Setup script exited with error: command 'gcc' failed with exit status 1
如何解决此问题?
yum安装mysql-devel
那么
easy\u安装MySQL python
好的格式是你的朋友。Linux版本2.6.18-164.el5xen(mockbuild@builder10.centos.org)(gcc版本4.1.2 20080704(Red Hat 4.1.2-46))#1