我試圖爲Python 2.6安裝MySQLdb的按照這些指令安裝MySQLdb的Python的2.6:在OSX
http://www.tutorialspoint.com/python/python_database_access.htm
當我到了這一步:$ python setup.py build
我得到的錯誤:
users-MacBook-Pro:MySQL-python-1.2.3 user$ sudo python setup.py build sh: mysql_config: command not found Traceback (most recent call last): File "setup.py", line 15, in metadata, options = get_config() File "/my_crawler/MySQL-python-1.2.3/setup_posix.py", line 43, in get_config libs = mysql_config("libs_r") File "/my_crawler/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並添加到我的bash
我在做什麼錯了?
謝謝,由於某種原因,我的SYS鏈接原本沒有工作。 – ian 2010-10-10 03:02:41