我正在尝试在Cygwin上安装MySQLdb for python.不幸的是,当我运行时python setup.py build
,我收到以下错误:
$ python setup.py build /bin/sh: /usr/local/bin/mysql_config: No such file or directory Traceback (most recent call last): File "setup.py", line 16, inmetadata, options = get_config() File "/home/Ben/python/MySQL-python-1.2.2/setup_posix.py", line 43, in get_config libs = mysql_config("libs_r") File "/home/Ben/python/MySQL-python-1.2.2/setup_posix.py", line 24, in mysql_config raise EnvironmentError, "%s not found" % mysql_config.path EnvironmentError: /usr/local/bin/mysql_config not found
显然我没有mysql_config
安装,我猜是问题.这在MySQL的README中提到,但它没有解释如何解决它或如何安装mysql_config.
所以也许这很简单:我如何mysql_config
为Cygwin 安装?
或许它比那更难.
仅供参考:我有python 2.5.2和MySQL 5.1.30,在Cygwin下运行.