Clearly installing
pip install MySQL-pythonis the way to go. The problem is
with the location of mysql_config. Look around here, this might help you
depending on your OS: mysql_config not found when installing mysqldb python
interface
Edit:
In case the install script fails with
Command "python setup.py egg_info"failed with error pre 1 in {...}, installing libmysqlclient-dev withsudo apt install libmysqlclient-dev
should fix the issue. Thanks to @thirupathi-thangavel.



