1
*我更大的問題是,我不能使用dev_apperver.py從我的命令行*MySQLdb的安裝麻煩
不過,我也不能安裝MySQLdb的,以及啓動Web應用程序。
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生成命令。有關如何獲得MySQLdb工作的明確說明會很有用,因爲我是一個noob。謝謝
您是否先安裝了MySQL? 'mysql_config not found'建議setup.py找不到你的'MySQL'安裝。 – unutbu