1sudo apt-get install libmysqlclient-dev
2sudo apt-get install libssl-dev
3pip install mysqlclient
4
5#for Debian
6su apt install libmysqlclient-dev
7su apt install libssl-dev
8pip install mysqlclient
1pip3 install http://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python-2.0.4.zip