title: MySQL running using Xampp but pip installing mysqlclient throws error EnvironmentError: mysql_config not found
body: <p>I have installed XAMPP on my mac OSX that have mysql MariaDB running, now from terminal I can run MySQL but if I try to install mysqlclient I get the error saying :</p>
  <pre><code>  Complete output from command python setup.py egg_info:
      sh: mysql_config: command not found
      Traceback (most recent call last):
        File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;
        File &quot;/private/var/folders/43/m1qv9zf53q19sqh6h9kg9pz80000gn/T/pip-install-7vpJZR/mysqlclient/setup.py&quot;, line 16, in &lt;module&gt;
          metadata, options = get_config()
        File &quot;setup_posix.py&quot;, line 53, in get_config
          libs = mysql_config(&quot;libs_r&quot;)
        File &quot;setup_posix.py&quot;, line 28, in mysql_config
          raise EnvironmentError(&quot;%s not found&quot; % (mysql_config.path,))
      EnvironmentError: mysql_config not found
  </code></pre>
  <p>I tried following this thread <a href="https://stackoverflow.com/q/25459386/3311276">Mac OS X - EnvironmentError: mysql_config not found</a> before posting it here, but I think since my MySQL is installed by XAMPP the configuration they are talking about in that thread does not apply to my case of problem.</p>