Python's MySQLdb can’t find libmysqlclient.dylib with Homebrewed MySQL

后端 未结 4 994
梦谈多话
梦谈多话 2020-12-23 22:24

MySQL and Python installed with Homebrew

I installed MySQL and Python with Homebrew on OS X 10.10.5 Yosemite. My Python 2.7 is at python -> ../Cellar/pyth

4条回答
  •  自闭症患者
    2020-12-23 23:05

    This solved my issue on my case:

    $ pip uninstall MySQL-python
    $ pip install mysqlclient
    

    MySQL-python turned out to be very old (last commit was 7 years ago). mysqlclient is the modern version of it, with lots of improvements and bug fixes.

提交回复
热议问题