Created
September 26, 2018 08:34
-
-
Save moskrc/db653a83e0293befe87b1253d1a32029 to your computer and use it in GitHub Desktop.
How to install mysqlclient on osx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ brew install mysql-connector-c | |
$ vim /usr/local/bin/mysql_config | |
Change | |
# on macOS, on or about line 112: | |
# Create options | |
libs="-L$pkglibdir" | |
libs="$libs -l " | |
to | |
# Create options | |
libs="-L$pkglibdir" | |
libs="$libs -lmysqlclient -lssl -lcrypto" | |
$ pip install mysqlclient |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment