Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

2.1K
Views
Problema con pip install mariadb - mariadb_config no encontrado

He estado intentando ejecutar pip3 install mariadb en mi raspberry pi con ubuntu 18.04 y no tuve éxito.

He intentado instalar los siguientes paquetes como se sugiere en otras respuestas:

 sudo apt-get install mariadb-server sudo apt-get install libmariadbclient-dev sudo apt-get install libmysqlclient-dev pip3 install mysqlclient pip3 install mysql-connector-python-rf

Sin embargo, todavía me encuentro con el problema como se muestra:

 ubuntu@ubuntu:~$ pip3 install mariadb Collecting mariadb Using cached https://files.pythonhosted.org/packages/8f/c9/7050899dc1066409a17e1147d3afe1b078e582afdb755c6d3cb9c9a5c3ab/mariadb-1.0.0.tar.gz Complete output from command python setup.py egg_info: /bin/sh: 1: mariadb_config: not found Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-build-2gdw_t_r/mariadb/setup.py", line 26, in <module> cfg = get_config(options) File "/tmp/pip-build-2gdw_t_r/mariadb/mariadb_posix.py", line 49, in get_config cc_version = mariadb_config(config_prg, "cc_version") File "/tmp/pip-build-2gdw_t_r/mariadb/mariadb_posix.py", line 27, in mariadb_config "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.") 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. ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-2gdw_t_r/mariadb/

Tengo el archivo /etc/mysql/my.cnf .

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Probablemente necesite instalar los archivos de desarrollo de la base de datos MariaDB: https://packages.debian.org/unstable/libmariadb-dev . Necesita este paquete para que su conector Python funcione correctamente en Linux. Tienes que seguir estos pasos:

  1. sudo apt-get update -y
  2. sudo apt-get install -y libmariadb-dev
  3. pip3 install mariadb

Aquí primero está actualizando la lista de paquetes que necesitan una actualización para su sistema. Luego, está instalando la biblioteca de desarrollo mencionada anteriormente. El último paso es instalar mariadb con pip3, que ahora debería funcionar como se esperaba.

over 4 years ago · Santiago Trujillo Report

0

Parece que no instaló MariaDB Connector/C correctamente, en Ubuntu debería encontrar mariadb_config en /usr/bin.

Tenga en cuenta también que MariaDB Connector/Python requiere MariaDB Connector/C 3.1.5 o posterior, afaik Ubuntu 18.04 proporciona 3.0.3, por lo que la forma más sencilla sería descargar las fuentes de Connector/C y compilarlas manualmente.

over 4 years ago · Santiago Trujillo Report

0

En una Mac, primero debe instalar mariadb-connector-c que se puede hacer usando brew :

 brew install mariadb-connector-c

Luego puedes instalar mysqlclient :

 pip3 install mysqlclient
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!