title: setup mysql with django on mac os
body: <p>I am trying to setup mysql server with my django application but I am having trouble installing it correctly.</p>
  
  <p>I used <code>brew install mysql</code> to install mysql server.</p>
  
  <p>Then I used <code>pip install mysqlclient</code> which gives this error:</p>
  
  <pre><code>Collecting mysqlclient
    Using cached mysqlclient-1.3.10.tar.gz
      Complete output from command python setup.py egg_info:
      Traceback (most recent call last):
        File "&lt;string&gt;", line 1, in &lt;module&gt;
        File "/private/var/folders/r9/n0ld0jk57x590rzq5kv8x4wc0000gn/T/pip-build-ZZb7dn/mysqlclient/setup.py", line 17, in &lt;module&gt;
          metadata, options = get_config()
        File "setup_posix.py", line 54, in get_config
          libraries = [dequote(i[2:]) for i in libs if i.startswith('-l')]
        File "setup_posix.py", line 12, in dequote
          if s[0] in "\"'" and s[0] == s[-1]:
      IndexError: string index out of range
  Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/r9/n0ld0jk57x590rzq5kv8x4wc0000gn/T/pip-build-ZZb7dn/mysqlclient/
  </code></pre>
  
  <p>Also tried, <code>pip install MySQL-python</code> but it also gives the same error message.</p>
  
  <p>Am i doing something wrong here? Please guide me in the right direction, I recently shifted from linux to mac os and I am a little confused how things work here.</p>
  
  <p>Note: I am trying to do this in a <code>virtual environment</code>.</p>