我已經在Eclipse中安裝了PyDev。我正在嘗試和Django一起玩。我有一個遠程MySQL數據庫設置。我真的很想在我的MacBook上不安裝MySQL。Mac OS X:使用本地Django + PyDev安裝遠程MySQL時遇到的麻煩
試圖設置MySQL插件蟒蛇,我得到
(djangotest)jeebus:MySQL-python-1.2.3 blah$ python setup.py clean
sh: mysql_config: command not found
Traceback (most recent call last):
File "setup.py", line 15, in <module>
metadata, options = get_config()
File "/Users/nali/djangotest/temp/MySQL-python-1.2.3/setup_posix.py", line 43, in get_config
libs = mysql_config("libs_r")
File "/Users/nali/djangotest/temp/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
錯誤有道理的,因爲我沒有任何MySQL或相關工具的設置做。
有沒有雪豹MySQL庫我可以用來滿足mysql_config的需要,而不需要實際安裝MySQL?
我看到macports有py26-mysql,但它的依賴是MySQL,所以這種打敗我試圖做的。除非我誤解了? – Hello 2010-09-06 21:27:44