Python install mysqlclient keeps on giving error

Solution 1:

In order to fix it, I had to run first

sudo apt-get install python-dev default-libmysqlclient-dev

and

sudo apt-get install python3-dev

and only then install the requirements.