gcc在Cygwin上安装Python MySQL库失败

gcc在Cygwin上安装Python MySQL库失败,mysql,gcc,cygwin,pip,easy-install,Mysql,Gcc,Cygwin,Pip,Easy Install,我想在Cygwin盒上安装我们的SQL或MySQLdb。两者都可以。 不幸的是,easy_install和pip在安装时都失败了 轻松安装-2.7 oursql 轻松安装-2.7 mysql python 在过去的十年中,我没有做过太多的gcc修复工作,因此我不确定如何处理此问题。试试这个,这可能会帮助您: Searching for oursql Reading https://pypi.python.org/simple/oursql/ Reading http://launchpad.ne

我想在Cygwin盒上安装我们的SQL或MySQLdb。两者都可以。 不幸的是,easy_install和pip在安装时都失败了

轻松安装-2.7 oursql

轻松安装-2.7 mysql python


在过去的十年中,我没有做过太多的gcc修复工作,因此我不确定如何处理此问题。

试试这个,这可能会帮助您:

Searching for oursql
Reading https://pypi.python.org/simple/oursql/
Reading http://launchpad.net/oursql
Best match: oursql 0.9.3.1
Downloading https://pypi.python.org/packages/source/o/oursql/oursql-0.9.3.1.zip#md5=ad599ea2d95fc695df7195e9801b45c2
Processing oursql-0.9.3.1.zip
Writing /tmp/easy_install-kA8kUA/oursql-0.9.3.1/setup.cfg
Running oursql-0.9.3.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-kA8kUA/oursql-0.9.3.1/egg-dist-tmp-Jh5tJ1
cython not found, using previously-cython'd .c file.
mysql_config --cflags
In file included from oursqlx/oursql.c:235:0:
oursqlx/compat.h:13:19: fatal error: mysql.h: No such file or directory
 #include "mysql.h"
                   ^
compilation terminated.
error: Setup script exited with error: command 'gcc' failed with exit status 1
Searching for mysql-python
Reading https://pypi.python.org/simple/mysql-python/
Best match: MySQL-python 1.2.5
Downloading https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.5.zip#md5=654f75b302db6ed8dc5a898c625e030c
Processing MySQL-python-1.2.5.zip
Writing /tmp/easy_install-JwMXUV/MySQL-python-1.2.5/setup.cfg
Running MySQL-python-1.2.5/setup.py -q bdist_egg --dist-dir /tmp/easy_install-JwMXUV/MySQL-python-1.2.5/egg-dist-tmp-jjPy0m
error: Setup script exited with error: command 'gcc' terminated by signal 11