Mysql
 sql >> Database >  >> RDS >> Mysql

Installa mysqlclient per Django Python su Mac OS X Sierra

Avevo bisogno di quanto segue per compilare/installare mysqlclient

brew install mysql-client
# mysql-client is not on the `PATH` by default
export PATH="/usr/local/opt/mysql-client/bin:$PATH"
# openssl is not on the link path by default
export LIBRARY_PATH="$LIBRARY_PATH:/usr/local/opt/openssl/lib/"

Quindi potrei pip wheel mysqlclient / pip install mysqlclient con successo