0

python setup.py build在终端中运行命令时收到以下错误。我在这里做错了什么,我以为 MySQL 是在 Mac OS X 上预先安装的,我还需要下载和安装 MySQL 吗?

sh: mysql_config: command not found
Traceback (most recent call last):
  File "setup.py", line 18, in <module>
    metadata, options = get_config()
  File "/Users/efet/Documents/workspace/kampuster/MySQL-python-1.2.4b4/setup_posix.py", line 43, in get_config
    libs = mysql_config("libs_r")
  File "/Users/efet/Documents/workspace/kampuster/MySQL-python-1.2.4b4/setup_posix.py", line 25, in mysql_config
    raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found
4

1 回答 1

-3

您可能需要安装开发文件,在 Debianmysql_config中位于 package 中libmysqlclient-dev

于 2013-04-27T07:47:38.973 回答