Solutions to some errors while deploying django

mysql_config not found

sh: mysql_config: command not found
Traceback (most recent call last):
  File "setup.py", line 15, in <module>
    metadata, options = get_config()
  File "/usr/lib/python2.5/MySQL-python-1.2.3/setup_posix.py", line 43, in get_config
    libs = mysql_config("libs_r")
  File "/usr/lib/python2.5/MySQL-python-1.2.3/setup_posix.py", line 24, in mysql_config
    raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found

Solution:
If using mysql:

sudo apt-get install mysql-server libmysqlclient-dev

If using mariadb:

sudo apt-get install libmariadbclient-dev

fatal error: Python.h
Happens while doing pip install

Solution:

sudo apt-get install python3-dev 

error: invalid command ‘bdist_wheel’
Solution:

pip3 install wheel

pdftotext.cpp:3:42: fatal error: poppler/cpp/poppler-document.h: No such file or directory
#include ^
compilation terminated.
error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1

Solution:

sudo apt-get install build-essential libpoppler-cpp-dev pkg-config python-dev
pip3 install pdftotext

__main__.ConfigurationError: Could not run curl-config: [Errno 2] No such file or directory
Solution:

sudo apt-get install libcurl4-openssl-dev