How to install MySQL-python on Amazon Web Services EC2 instance?
<p>I have a EC2 instance created on AWS and use PuTTY to connect to it.<br>
I'm unable to install <strong><em>MySQL-python</em></strong> using python <strong><em>pip</em></strong> command as follows:
<br>
<strong><em>pip install MySQL-python</em></strong>(via root privileges)
<br>
<br>
Here is the console output of the error</p>

<pre><code>Collecting MySQL-python
Using cached MySQL-python-1.2.5.zip
Complete output from command python setup.py egg_info:
sh: mysql_config: command not found
Traceback (most recent call last):
File "&lt;string&gt;", line 20, in &lt;module&gt;
File "/tmp/pip-build-JGbAEI/MySQL-python/setup.py", line 17, in &lt;module&gt;
metadata, options = get_config()
File "/tmp/pip-build-JGbAEI/MySQL-python/setup_posix.py", line 43, in get_config
libs = mysql_config("libs_r")
File "/tmp/pip-build-JGbAEI/MySQL-python/setup_posix.py", line 25, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-JGbAEI/MySQL-python
</code></pre>

<p><br>
However I'm able to install other packages using <strong><em>pip</em></strong>
<br>
Please Guide.</p>