mysql-python installation problems (on mac os x lion)

前端 未结 5 1968
渐次进展
渐次进展 2020-11-29 05:51

I installed everything successfully, or so I thought:

  • MySQL 5.5 for x86_64.
  • Python 2.7, x86_64.
  • mysql-python 1.2.3, x86_64.

Bu

5条回答
  •  我在风中等你
    2020-11-29 06:23

    I had the same problem, and a lot of headache with MySQLdb after fixing the 64bit issue (it was complaining also about where is libmysqlclient.18.dylib).

    I think it's time to switch to the official MysQL Python Connector?

    sudo pip install mysql-connector-python
    

    Or download it from: http://dev.mysql.com/downloads/connector/python/

    Documentation: http://dev.mysql.com/doc/refman/5.5/en/connector-python.htm

    It's easy to use and also compatible with PEP 249 (Python DB API version 2.0).

提交回复
热议问题