4👍
For python3 + django 1.11 + mysql on mac. This worked for me:
brew install mysql-connector-c
- edit mysql_config (locate it:
which mysql_config
)
Change the following in mysql_config:
# Create options #
libs="-L$pkglibdir"
libs="$libs -l "
To:
# Create options #
libs="-L$pkglibdir"
libs="$libs -lmysqlclient -lssl -lcrypto"
-
brew info openssl
-
and finally
pip3 install mysqlclient
and done.
👤IJR
Source:stackexchange.com