raise EnvironmentError("%s not found" % (mysql_config.path,)) EnvironmentError: mysql_

Posted 听风。

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了raise EnvironmentError("%s not found" % (mysql_config.path,)) EnvironmentError: mysql_相关的知识,希望对你有一定的参考价值。

报错信息如下:

  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/a5/e9/51b544da85a36a68debe7a7091f068d802fc515a3a202652828c73453cad/mysql-python-1.2.5.zip (108kB)
    100% |████████████████████████████████| 112kB 18.8MB/s 
    Complete output from command python setup.py egg_info:
    sh: mysql_config: command not found
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-7fDK6T/MySQL-python/setup.py", line 17, in <module>
        metadata, options = get_config()
      File "setup_posix.py", line 43, in get_config
        libs = mysql_config("libs_r")
      File "setup_posix.py", line 25, in mysql_config
        raise EnvironmentError("%s not found" % (mysql_config.path,))
    EnvironmentError: mysql_config not found

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-7fDK6T/MySQL-python/

解决办法:

yum install mysql-devel

以上是关于raise EnvironmentError("%s not found" % (mysql_config.path,)) EnvironmentError: mysql_的主要内容,如果未能解决你的问题,请参考以下文章

EnvironmentError:找不到mysql_config [重复]

如何修复 pip install 错误:'EnvironmentError: [Errno 42] Illegal byte sequence'?

EnvironmentError: HTTPSConnectionPool 同时在 docker 容器上安装 pip

由于 EnvironmentError 无法安装“discord.py”

[已解决]EnvironmentError: mysql_config not found

由于 EnvironmentError 无法安装软件包:[Errno 2] 没有这样的文件或目录 \\METADATA