【发布时间】:2014-03-05 11:54:32
【问题描述】:
我是 Mac 新手,我正在尝试在 MAC 上安装 MySQLdb for Python,但按照http://www.tutorialspoint.com/python/python_database_access.htm 中提到的步骤操作后,我在运行后收到错误
$ 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/Library/bin/mysql_config 我该怎么办?
【问题讨论】:
-
你看过这篇文章了吗? stackoverflow.com/questions/15505840/…
-
是的,我已经有 XAMPP 并且 XAMPP 有 MySQL - 现在我想使用 XAMPP 中现有的 MySQL 解决这个问题
标签: python mysql-python