Skip to content

Instantly share code, notes, and snippets.

@simonw
Created June 21, 2019 04:17
Show Gist options
  • Save simonw/90ac0afd204cd0d6d9c3135c3888d116 to your computer and use it in GitHub Desktop.
Save simonw/90ac0afd204cd0d6d9c3135c3888d116 to your computer and use it in GitHub Desktop.
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
@NiyongaboEric
Copy link

It works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment