Pro Mac:
brew install mysql
export PATH=$PATH:/usr/local/mysql/bin
pip install mysqlclient
Funguje to pro mě.
➜ which mysql_config
/usr/local/bin/mysql_config
Pro ubuntu:
apt-get install libmysqlclient-dev (or libmariadbclient-dev)
Doufám, že to pomůže.