Skip to content

Instantly share code, notes, and snippets.

@zacscott
Created June 23, 2018 01:37
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 zacscott/0c67e0a75d23581609ecc1bf631570f4 to your computer and use it in GitHub Desktop.
Save zacscott/0c67e0a75d23581609ecc1bf631570f4 to your computer and use it in GitHub Desktop.
PIP install mysqlclient on MacOSX
# Python's mysqlclient requires MySQL version 5.7, however brew installs MySQL v8 by default.
# This is how you can install MySQL 5.7 and have it work to build mysqlclient
brew install mysql@5.7
ln -s /usr/local/Cellar/mysql-client/5.7.22/bin/mysql_config /usr/local/bin/mysql_config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment