title: Error with pip install MySQL-python
body: <p>I have been trying for a few days to fix this, looking at other questions but I can't find a question wth the same error that I am getting.</p>
  
  <p>I have been attempting to follow this tutorial <a href="https://realpython.com/learn/start-django/" rel="nofollow">https://realpython.com/learn/start-django/</a> and get to this point:</p>
  
  <p>Database settings
  First, install MySQL-python, which is a database connector for Python:</p>
  
  <pre><code>$ pip install MySQL-python
  </code></pre>
  
  <p>Everything has worked okay up to here but when I try and install MySQL-python I get the following error:</p>
  
  <blockquote>
  <pre><code>(env) Camerons-MacBook-Pro:django15_project camrail$ pip install MySQL-python
  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 1, in &lt;module&gt;
        File "/private/var/folders/3v/czm4shrx0yg5jts39qktf6t00000gn/T/pip-build-2rNsQQ/MySQL-python/setup.py", line 17, in &lt;module&gt;
          metadata, options = get_config()
        File "/private/var/folders/3v/czm4shrx0yg5jts39qktf6t00000gn/T/pip-build-2rNsQQ/MySQL-python/setup_posix.py", line 43, in get_config
          libs = mysql_config("libs_r")
        File "/private/var/folders/3v/czm4shrx0yg5jts39qktf6t00000gn/T/pip-build-2rNsQQ/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 /private/var/folders/3v/czm4shrx0yg5jts39qktf6t00000gn/T/pip-build-2rNsQQ/MySQL-python/
  (env) Camerons-MacBook-Pro:django15_project camrail$ 
  </code></pre>
  </blockquote>
  
  <p>I found this answer <a href="https://opensourcehacker.com/2011/03/02/installing-mysql-python-connector-on-osx/" rel="nofollow">https://opensourcehacker.com/2011/03/02/installing-mysql-python-connector-on-osx/</a> that says the MySQL utilities are not made available, so I followed their advice to fix it but to no avail.  I have also tried installing developer tools <code>xcode-select --install</code> as some have suggested.  I have tried reinstalling <code>ez_setup</code>.</p>
  
  <p>Not really sure where to go from here, any help greatly appreciated.</p>