Python: MySQLdb and “Library not loaded: libmysqlclient.16.dylib”

Just set the DYLD_LIBRARY_PATH after running pip install or easy_install:

export DYLD_LIBRARY_PATH=/usr/local/mysql/lib/

Should do the job assuming your MySQL installation lives under /usr/local/mysql.

Leave a Comment