*我更大的问题是我无法从命令行使用 dev_apperver.py 启动 Web 应用程序*
但是,我也无法安装 MySQLdb。
Joes-MacBook-Pro:MySQL-python-1.2.3 MoeJancini$ python setup.py build
sh: mysql_config: command not found
Traceback (most recent call last):
File "setup.py", line 15, in <module>
metadata, options = get_config()
File "/Users/MoeJancini/Desktop/MySQL-python-1.2.3/setup_posix.py", line 43, in get_config
libs = mysql_config("libs_r")
File "/Users/MoeJancini/Desktop/MySQL-python-1.2.3/setup_posix.py", line 24, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found
Joes-MacBook-Pro:MySQL-python-1.2.3 MoeJancini$
我在浏览其他论坛时查看了类似的问题,但我仍然无法通过 setup.py build 命令。因为我是菜鸟,所以关于如何让 MySQLdb 工作的明确说明会很有用。谢谢