I tried to get build an app on Django and I wanted to use MySQL as the database. After setting up the settings.py right, I tried to migrate. Then I got the obvious error saying that MySQL is not installed. So inorder to install MySQL, I ran:
sudo -H pip install MySQL-python
I get the following error:
Collecting MySQL-pythonUsing cached MySQL-python-1.2.5.zipComplete output from command python setup.py egg_info:sh: mysql_config: command not foundTraceback (most recent call last):File "<string>", line 1, in <module>File "/private/tmp/pip-build-zAMhWo/MySQL-python/setup.py", line 17, in <module>metadata, options = get_config()File "setup_posix.py", line 43, in get_configlibs = mysql_config("libs_r")File "setup_posix.py", line 25, in mysql_configraise EnvironmentError("%s not found" % (mysql_config.path,))EnvironmentError: mysql_config not found----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-zAMhWo/MySQL-python/
How do I fix this?