if you get “OSError: mysql_config not found” error while installing mysqlclient with python pip
you can use the following command to install necessary library
sudo apt-get install libmysqlclient-dev
Note that this solution is tested on ubuntu 18.04 lts
Thanks: https://stackoverflow.com/questions/7475223/mysql-config-not-found-when-installing-mysqldb-python-interface