且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在 OSX 10.6 中将 MySQLdb 与 Python 和 Django 一起使用?

更新时间:2021-09-20 00:13:55

此问题是由于 MySQL for Python 适配器安装不完整/不正确造成的.具体来说,我必须编辑 mysql_config 文件的路径以指向/usr/local/mysql/bin/mysql_config - 在本文中进行了更详细的讨论:http://dakrauth.com/blog/entry/python-and-django-setup-mac-os-x-豹子/

This issue was the result of an incomplete / incorrect installation of the MySQL for Python adapter. Specifically, I had to edit the path to the mysql_config file to point to /usr/local/mysql/bin/mysql_config - discussed in greater detail in this article: http://dakrauth.com/blog/entry/python-and-django-setup-mac-os-x-leopard/