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

后端 未结 4 1013
梦谈多话
梦谈多话 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:25

    If encountered a problem with lacking of libmysqlclient.18.dylib:

    1. download mysql 5.6 from official link: https://dev.mysql.com/downloads/mysql/

    2. install it

    3. in terminal - mdfind libmysqlclient | grep .18.

    4. copy the output

    5. sudo ln -s [the output from previous command] /usr/local/lib/libmysqlclient.18.dylib

提交回复
热议问题