Python Mariadb Pip Install Failed, Missing Mariadb_config
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. I have alre
Solution 1:
Install MariaDB Connector/C, which is a dependency.
sudo apt-get install libmariadb3 libmariadb-dev
Use PIP to install MariaDB Connector/Python.
pip3 install mariadb
Solution 2:
To install mariadb python module, you have to install a recent version of MariaDB Connector/C, minimum required version is 3.1.5, afaik Ubuntu 18.04 has 3.0.3.
An actual version of Connector/C for bionic is available on the MariaDB Connector/C Download Page.
If you want to install it in a special directory, make sure that the PATH and LD_LIBRARY_PATH point to bin and lib directories.
I also recommend to use a recent version of MariaDB Server, especially the very fast executemany() method will be much slower on MariaDB Server < 10.2.
Solution 3:
It seems you need to install it first on your OS. You can follow this guide to install it properly.
Post a Comment for "Python Mariadb Pip Install Failed, Missing Mariadb_config"