linux安装mysqlclient报错

Posted Wyc

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux安装mysqlclient报错相关的知识,希望对你有一定的参考价值。

错误信息

Collecting mysqlclient
  Using cached mysqlclient-1.3.12.tar.gz
    Complete output from command python setup.py egg_info:
    /bin/sh: mysql_config: command not found
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-ctrzre4u/mysqlclient/setup.py", line 17, in <module>
        metadata, options = get_config()
      File "/tmp/pip-build-ctrzre4u/mysqlclient/setup_posix.py", line 44, in get_config
        libs = mysql_config("libs_r")
      File "/tmp/pip-build-ctrzre4u/mysqlclient/setup_posix.py", line 26, in mysql_config
        raise EnvironmentError("%s not found" % (mysql_config.path,))
    OSError: mysql_config not found

解决办法

yum install mysql-devel

以上是关于linux安装mysqlclient报错的主要内容,如果未能解决你的问题,请参考以下文章

issue:Linux /opt/python36/bin/pip3.6 install mysqlclient报错:ERROR: Command errored out with exit(示例代码

issue:Linux /opt/python36/bin/pip3.6 install mysqlclient报错:ERROR: Command errored out with exit(示例代码

Django报错“Did you install mysqlclient or MySQL-python?”的解决办法(前提:mysqlclient&MySQL都已经安装)

Windows下安装模块mysqlclient报错处理

Mac上安装mysqlclient的报错

centos 7.4 MariaDB python3.6 安装mysqlclient 报错 ld: cannot find -lmariadb 怎么修复?