I installed Python2.7, virtualenv and pip2.7 on centos6.4 64bit, since python2.6 is standard.
when i try to install mysqldb using
pip2.7 install MySQL-python
an error occurs and the python-devel package is already installed.
_mysql.c:2551: error: '_mysql_ConnectionObject' has no member named 'open'
_mysql.c:2558: error: '_mysql_ConnectionObject' has no member named 'converter'
_mysql.c:2565: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c:2572: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c:2579: error: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c:2642: error: '_mysql_ResultObject' has no member named 'converter'
_mysql.c:2642: error: initializer element is not constant
_mysql.c:2642: error: (near initialization for '_mysql_ResultObject_memberlist[0].offset')
_mysql.c: In function '_mysql_ConnectionObject_getattr':
_mysql.c:2666: error: '_mysql_ConnectionObject' has no member named 'open'
error: command 'gcc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /usr/local/bin/python2.7 -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/MySQL-python/setup.py';exec(compile(getattr(tokenize,
'open', open) ( file ). read (). replace ('\ r \ n', '\ n'), file , 'exec')) "install --record / tmp / pip-eNCiSQ-record / install-record.txt -single-version-external-managed - compile failed with error code 1 in / tmp / pip _build_root / MySQL-python Saving the debug log for failure in /root/.pip/pip.log
shivg source
share