Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Installing MySQLdb mysqlclient with Homebrew and pip in OS X Mojave

Installing MySQLdb mysqlclient with Homebrew and pip in OS X Mojave

First I used Homebrew to install the MySQL server along with mysql_config, needed to compile the Python extension:

brew install mysql

I had to then use this incantation to get pip install mysqlclient to work:

LIBRARY_PATH=$LIBRARY_PATH:/usr/local/opt/openssl/lib/ pip install mysqlclient
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment