MySQL-Python在Snow Leopard上安装编译

如果不使用port替换系统的Python,那么所有Python的Library都要自己下载安装。当安装MySQL-Python的时候,会说找不到mysql_config。需要到目录下修改setup_posix.py的26行,指定系统的MySQL配置文件的地址,再执行安装的命令就没有问题了。这里我用port安装的mysql5:

mysql_config.path = "/opt/local/bin/mysql_config5"

Tags: ,

Leave a Reply

Name and Email Address are required fields. Your email will not be published or shared with third parties.