title: ModuleNotFoundError: No module named 'MySQLdb' python macOS high sierra
body: <p>Everytime I execute my python code, it gives me the above ModuleNotFound error when I execute with python3. With python, it gives me an ImportError.</p>
  
  <p>I have updated setuptools using <code>pip install --upgrade setuptools</code>.</p>
  
  <p>I have also tried multiple commands such as: <code>pip install mysqlclient, pip install MySQL-python, pip install pymysql</code>. </p>
  
  <p>I have tried these commands with pip3 as well (Not sure if it makes a difference). </p>
  
  <p>Everytime I try these commands, it gives me the following error: </p>
  
  <pre><code>Complete output from command python setup.py egg_info:
      /bin/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/0y/xsr1t8rs36l0vlq3_f2q42g40000gn/T/pip-install-soxlcjei/mysqlclient/setup.py", line 16, in &lt;module&gt;
          metadata, options = get_config()
        File "/private/var/folders/0y/xsr1t8rs36l0vlq3_f2q42g40000gn/T/pip-install-soxlcjei/mysqlclient/setup_posix.py", line 51, in get_config
          libs = mysql_config("libs")
        File "/private/var/folders/0y/xsr1t8rs36l0vlq3_f2q42g40000gn/T/pip-install-soxlcjei/mysqlclient/setup_posix.py", line 29, 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 /private/var/folders/0y/xsr1t8rs36l0vlq3_f2q42g40000gn/T/pip-install-soxlcjei/mysqlclient
  </code></pre>
  
  <p>How do I fix this? I am using a macOS High Sierra. I have gone through solutions for similar problems on ubuntu/debian systems and have to tried to apply it here. None of that works on a mac. Also, i already have mysql installed and it works perfectly. It is constantly running on my system.</p>