title: What package should I use to query Mysql Databases in Python?
body: <p>I need to query a Mysql database with Python.</p>
  
  <p>I have virtual env installed and also PIP, I have tried to install this package, <a href="http://pypi.python.org/pypi/MySQL-python/#downloads" rel="nofollow">http://pypi.python.org/pypi/MySQL-python/#downloads</a> but without success.</p>
  
  <p>I have parformed the command:</p>
  
  <pre><code>sudo pip install http://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.3.tar.gz#md5=215eddb6d853f6f4be5b4afc4154292f
  </code></pre>
  
  <p>And I have got the error:</p>
  
  <pre><code>(python_virtualenv)andre@ubuntu:~/workspace/RS_r/src$ sudo pip install http://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.3.tar.gz#md5=215eddb6d853f6f4be5b4afc4154292f
  [sudo] password for andre: 
  Downloading/unpacking http://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.3.tar.gz#md5=215eddb6d853f6f4be5b4afc4154292f
    Downloading MySQL-python-1.2.3.tar.gz (70Kb): 70Kb downloaded
    Running setup.py egg_info for package from http://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.3.tar.gz#md5=215eddb6d853f6f4be5b4afc4154292f
      sh: mysql_config: not found
      Traceback (most recent call last):
        File "&lt;string&gt;", line 14, in &lt;module&gt;
        File "/tmp/pip-l0kPkg-build/setup.py", line 15, 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 24, 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: not found
  
  Traceback (most recent call last):
  
    File "&lt;string&gt;", line 14, in &lt;module&gt;
  
    File "/tmp/pip-l0kPkg-build/setup.py", line 15, 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 24, 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
  Storing complete log in /home/andre/.pip/pip.log
  </code></pre>
  
  <p>My questions. What package should I install to query Mysql databases and how should I install? Pip install should be used in this case?</p>
  
  <p>Give me a clue.</p>
  
  <p>Best regards,</p>