This is a read-only copy of the MariaDB Knowledgebase generated on 2024-11-17. For the latest, interactive version please visit https://mariadb.com/kb/.

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-qypesnjq/mariadb/

[root@rocky ]# pip3 install mariadb WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead. Collecting mariadb Using cached https://files.pythonhosted.org/packages/37/0a/ce5724f852f2937c6955bcea09659aa2d85d487df1c9de6711344b71527d/mariadb-1.0.11.zip Complete output from command python setup.py egg_info: /bin/sh: mariadb_config: command not found Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-build-qypesnjq/mariadb/setup.py", line 26, in <module> cfg = get_config(options) File "/tmp/pip-build-qypesnjq/mariadb/mariadb_posix.py", line 59, in get_config cc_version = mariadb_config(config_prg, "cc_version") File "/tmp/pip-build-qypesnjq/mariadb/mariadb_posix.py", line 29, in mariadb_config "mariadb_config not found.\n\nPlease make sure, that MariaDB Connector/C is installed on your system.\n" OSError: mariadb_config not found.

Please make sure, that MariaDB Connector/C is installed on your system. Either set the environment variable MARIADB_CONFIG or edit the configuration file 'site.cfg' and set the 'mariadb_config option, which should point to the mariadb_config utility. The MariaDB Download website at <https://downloads.mariadb.com/Connectors/c/> provides latest stable releease of Connector/C.

---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-qypesnjq/mariadb/ [root@rocky ]#

Answer Answered by Daniel Black in this comment.

Please make sure, that MariaDB Connector/C is installed

Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.