我正在尝试使用 python 安装 MySql。我采取的方法解释如下:
为 Python下载了 MYSQL
提取的
我从终端导航到我在上一步中提取的文件夹
输入了命令
sudo python setup.py build
输入了命令
sudo python setup.py install
在第 4 步中,我收到以下错误:
h: mysql_config: command not found
Traceback (most recent call last):
File "setup.py", line 18, in <module>
metadata, options = get_config()
File "/Users/Me/Downloads/MySQL-python-1.2.4b4/setup_posix.py", line 43, in get_config
libs = mysql_config("libs_r")
File "/Users/Me/Downloads/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
(django_sampleproject)Mes-MacBook-Pro:
我该如何解决这个问题?帮助。