За mac:
brew install mysql
export PATH=$PATH:/usr/local/mysql/bin
pip install mysqlclient
При мен работи.
➜ which mysql_config
/usr/local/bin/mysql_config
За ubuntu:
apt-get install libmysqlclient-dev (or libmariadbclient-dev)
Надявам се това да помогне.