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