Skip to content

Instantly share code, notes, and snippets.

@fhsinchy
Last active March 30, 2020 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fhsinchy/64b40cacb2c02fab779ab2f45fbf1bb2 to your computer and use it in GitHub Desktop.
Save fhsinchy/64b40cacb2c02fab779ab2f45fbf1bb2 to your computer and use it in GitHub Desktop.
Installation process for MySQLClient python package on MacOS
brew install mysql@5.7 mysql-connector-c openssl
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/opt/openssl/lib/
brew services start mysql@5.7
xcode-select --install
brew unlink mysql@5.7
brew link --overwrite --force mysql-connector-c
pip install mysqlclient
brew unlink mysql-connector-c
brew link --overwrite --force mysql@5.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment