zoukankan      html  css  js  c++  java
  • 解决问题:OSError: mysql_config not found

    通过pip install mysqlclient时报出了OSError: mysql_config not found错误,如下

    Traceback (most recent call last):
          File "<string>", line 1, in <module>
          File "/tmp/pip-build-o4j1ozxx/mysqlclient/setup.py", line 17, in <module>
            metadata, options = get_config()
          File "/tmp/pip-build-o4j1ozxx/mysqlclient/setup_posix.py", line 44, in get_config
            libs = mysql_config("libs_r")
          File "/tmp/pip-build-o4j1ozxx/mysqlclient/setup_posix.py", line 26, in mysql_config
            raise EnvironmentError("%s not found" % (mysql_config.path,))
        OSError: mysql_config not found
        
        ----------------------------------------
    Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-o4j1ozxx/mysqlclient/
    You are using pip version 9.0.3, however version 19.3.1 is available.
    You should consider upgrading via the 'pip install --upgrade pip' command.
    

      解决办法

    yum install mysql-devel gcc gcc-devel python-devel
  • 相关阅读:
    commons-logging.jar 和 log4j.jar 的关系
    百钱买百鸡
    reflect
    golang结构体、接口、反射
    golang文件操作
    sqlx使用说明
    go example
    goroutine
    生成二维码
    method&interface
  • 原文地址:https://www.cnblogs.com/lulin9501/p/11758277.html
Copyright © 2011-2022 走看看