我是Mac新手,我試圖在MAC上安裝MySQLdb for MySQL,但是按照http://www.tutorialspoint.com/python/python_database_access.htm提到的步驟後,運行後收到錯誤錯誤:命令'cc'失敗,退出狀態1 - 在MAC上安裝MySQLdb
$ python setup.py build
錯誤:
clang: warning: argument unused during compilation: '-mno-fused-madd'
_mysql.c:44:10: fatal error: 'my_config.h' file not found
#include "my_config.h"
^
1 error generated.
error: command 'cc' failed with exit status 1
注:我的 「mysql_config」 路徑爲/ Applications/MAMP /庫/斌/ mysql_config 我應該怎麼辦?
你檢查出這個帖子? http://stackoverflow.com/questions/15505840/how-to-install-mysql-python-1-2-3-on-mac-os-10-8 –
是的,我已經有XAMPP和XAMPP有MySQL - 現在我想用XAMPP –