title: Python MariaDB pip install failed, missing mariadb_config
body: <p>I am using Linux Ubuntu 18.04 and python 3. I am trying to build a connection between a maria-db and my python scripts. Therefore I have to install the mariadb package.<br />
  I have already installed:</p>
  <pre><code>sudo apt install mariadb-server
  </code></pre>
  <p>But when i try:</p>
  <pre><code>pip install mariadb
  </code></pre>
  <p>I get following error:</p>
  <pre><code>Collecting mariadb
    Using cached mariadb-1.0.0.tar.gz (78 kB)
  
      ERROR: Command errored out with exit status 1:
       command: /home/niklas/Desktop/Stuff/venv/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '&quot;'&quot;'/tmp/pycharm-packaging/mariadb/setup.py'&quot;'&quot;'; __file__='&quot;'&quot;'/tmp/pycharm-packaging/mariadb/setup.py'&quot;'&quot;';f=getattr(tokenize, '&quot;'&quot;'open'&quot;'&quot;', open)(__file__);code=f.read().replace('&quot;'&quot;'\r\n'&quot;'&quot;', '&quot;'&quot;'\n'&quot;'&quot;');f.close();exec(compile(code, __file__, '&quot;'&quot;'exec'&quot;'&quot;'))' egg_info --egg-base /tmp/pip-pip-egg-info-wfnscxnz
           cwd: /tmp/pycharm-packaging/mariadb/
      Complete output (12 lines):
      /bin/sh: 1: mariadb_config: not found
      Traceback (most recent call last):
        File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;
        File &quot;/tmp/pycharm-packaging/mariadb/setup.py&quot;, line 26, in &lt;module&gt;
          cfg = get_config(options)
        File &quot;/tmp/pycharm-packaging/mariadb/mariadb_posix.py&quot;, line 49, in get_config
          cc_version = mariadb_config(config_prg, &quot;cc_version&quot;)
        File &quot;/tmp/pycharm-packaging/mariadb/mariadb_posix.py&quot;, line 27, in mariadb_config
          &quot;mariadb_config not found.\nPlease make sure, that MariaDB Connector/C is installed on your system, edit the configuration file 'site.cfg' and set the 'mariadb_config'\noption, which should point to the mariadb_config utility.&quot;)
      OSError: mariadb_config not found.
      Please make sure, that MariaDB Connector/C is installed on your system, edit the configuration file 'site.cfg' and set the 'mariadb_config'
      option, which should point to the mariadb_config utility.
      ----------------------------------------
  ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
  </code></pre>
  <p>Can anybody help me ?</p>
  <p>Edit:</p>
  <p>I have now been able to connect to the server but not with te mariadb package. (<a href="https://linuxhint.com/connect_mariadb_pymysql/" rel="noreferrer">https://linuxhint.com/connect_mariadb_pymysql/</a>)</p>