ОС - kUbuntu 13.10
Это при установке на виртуальное окружение с питон3.3:
/home/dev/djangi_py3.3/build/mysql-python/distribute-0.6.28-py3.3.egg
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/home/dev/djangi_py3.3/build/mysql-python/setup.py", line 14, in <module>
from setup_posix import get_config
File "./setup_posix.py", line 2, in <module>
from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
Вот при установке на окружение с питон2.7:
building '_mysql' extension
creating build/temp.linux-x86_64-2.7
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Dversion_info=(1,2,4,'final',1) -D__version__=1.2.4 -I/usr/include/mysql -I/usr/include/python2.7 -c _mysql.c -o build/temp.linux-x86_64-2.7/_mysql.o -DBIG_JOINS=1 -fno-strict-aliasing -g -DNDEBUG
_mysql.c:29:20: fatal error: Python.h: No such file or directory
#include "Python.h"
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /home/dev/django_py2.7/bin/python -c "import setuptools;__file__='/home/dev/django_py2.7/build/mysql-python/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-Lfd5LN-record/install-record.txt --single-version-externally-managed --install-headers /home/dev/django_py2.7/include/site/python2.7 failed with error code 1 in /home/dev/django_py2.7/build/mysql-python