1👍
mysql_config
is missing on your system or the installer could not find it.
# activate your virtualenv
# source virtualenv/bin/activate
sudo apt-get install libmysqlclient-dev
Then try installing MySQLdb
this way:
sudo apt-get install python-mysqldb
You need to give access to your root for installing python-mysqldb
.
sudo
performs the following command with super-user (root) capabilities.
Many actions that require modifyingsystem files or installing applications require extra permissions to
go through.
Source:stackexchange.com