title: Ubuntu 17: Can't install mysqlclient
body: <p>Trying to follow a Django tutorial but I cannot install <code>mysqlclient</code>.</p>
  
  <p>The tutorial claims that I can do so with the following command:</p>
  
  <p><code>pip install mysqlclient</code></p>
  
  <p>but this generates this error:</p>
  
  <pre><code>Collecting mysqlclient   Using cached mysqlclient-1.3.12.tar.gz
      Complete output from command python setup.py egg_info:
      /bin/sh: 1: mysql_config: not found
      Traceback (most recent call last):
        File "&lt;string&gt;", line 1, in &lt;module&gt;
        File "/tmp/pip-build-rrolctwh/mysqlclient/setup.py", line 17, in &lt;module&gt;
          metadata, options = get_config()
        File "/tmp/pip-build-rrolctwh/mysqlclient/setup_posix.py", line 44, in get_config
          libs = mysql_config("libs_r")
        File "/tmp/pip-build-rrolctwh/mysqlclient/setup_posix.py", line 26, in mysql_config
          raise EnvironmentError("%s not found" % (mysql_config.path,))
      OSError: mysql_config not found
  
  
  ----------------------------------------  Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-rrolctwh/mysqlclient/
  </code></pre>
  
  <p>I have the most up-to-date pip and virtualenv installed. </p>
  
  <p>I would like to be able to install <code>mysqlclient</code> so that I may continue with the tutorial. </p>