I am trying to install MySql with python. The approach i took is explained below:
Downloaded MYSQL for Python
Extracted
From the terminal i navigated to the folder that i extracted in the previous step
typed the command
sudo python setup.py build
typed the command
sudo python setup.py install
In step 4 i get the following error:
h: mysql_config: command not found
Traceback (most recent call last):
File "setup.py", line 18, in <module>
metadata, options = get_config()
File "/Users/Me/Downloads/MySQL-python-1.2.4b4/setup_posix.py", line 43, in get_config
libs = mysql_config("libs_r")
File "/Users/Me/Downloads/MySQL-python-1.2.4b4/setup_posix.py", line 25, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found
(django_sampleproject)Mes-MacBook-Pro:
How can i resolve this issue ? Help.