小编Ale*_* Xu的帖子

pip install mariadb 的问题 - 找不到 mariadb_config

我一直试图pip3 install mariadb在运行 ubuntu 18.04 的树莓派上运行,但没有成功。

我已尝试按照其他答案中的建议安装以下软件包:

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
Run Code Online (Sandbox Code Playgroud)

但是,我仍然遇到问题,如图所示:

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 …
Run Code Online (Sandbox Code Playgroud)

mysql pip mariadb python-3.x raspberry-pi

6
推荐指数
3
解决办法
7010
查看次数

标签 统计

mariadb ×1

mysql ×1

pip ×1

python-3.x ×1

raspberry-pi ×1