title: Unable to do pip install mysql-python on virtualenv
body: <p>I use macports and I have successfully install mysql5 using macports, and my python also managed by macports. Currently I am trying to do pip install mysql-python on my virtualenv but I am getting an error which says, mysql_config not found: </p>
  
  <pre><code>    ~/code]$pip install mysql-python
      Downloading/unpacking mysql-python
        Running setup.py egg_info for package mysql-python
          sh: mysql_config: command not found
          Traceback (most recent call last):
            File "&lt;string&gt;", line 16, in &lt;module&gt;
            File "~/myVirtualEnv/build/mysql-python/setup.py", line 18, in &lt;module&gt;
              metadata, options = get_config()
            File "setup_posix.py", line 43, in get_config
              libs = mysql_config("libs_r")
            File "setup_posix.py", line 25, in mysql_config
              raise EnvironmentError("%s not found" % (mysql_config.path,))
          EnvironmentError: mysql_config not found
          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 16, in &lt;module&gt;
  
        File "~/myVirtualEnv/build/mysql-python/setup.py", line 18, in &lt;module&gt;
  
          metadata, options = get_config()
  
        File "setup_posix.py", line 43, in get_config
  
          libs = mysql_config("libs_r")
  
        File "setup_posix.py", line 25, in mysql_config
  
          raise EnvironmentError("%s not found" % (mysql_config.path,))
  
  EnvironmentError: mysql_config not found
  </code></pre>
  
  <p>I read many google examples but more I read helped me to confuse myself further. </p>
  
  <p>Looks like macport have had a issue but it has been closed for while.. <a href="http://trac.macports.org/ticket/6982" rel="nofollow">http://trac.macports.org/ticket/6982</a></p>