CDN Space
Learn Skills ,Record Life
CDN Space

转载 |解决安装mysqlclient出现问题:mysql_config: not found

问题:

Complete output from command python setup.py egg_info:
    /bin/sh: 1: mysql_config: not found
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-7qo1k7as/mysqlclient/setup.py", line 18, in <module>
        metadata, options = get_config()
      File "/tmp/pip-install-7qo1k7as/mysqlclient/setup_posix.py", line 53, in get_config
        libs = mysql_config("libs_r")
      File "/tmp/pip-install-7qo1k7as/mysqlclient/setup_posix.py", line 28, 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-install-7qo1k7as/mysqlclient/

解决:

sudo apt-get install mysql-server mysql-client
#然后mysql -V查看mysql是否安装成功
sudo  apt-get install libmysqlclient-dev python3-dev

来源:时间@煮雨~

赞赏
# #
首页      技术      转载 |解决安装mysqlclient出现问题:mysql_config: not found

CDN

文章作者

发表评论

textsms
account_circle
email

CDN Space

转载 |解决安装mysqlclient出现问题:mysql_config: not found
问题: Complete output from command python setup.py egg_info: /bin/sh: 1: mysql_config: not found Traceback (most recent call last): File "<string>", line…
扫描二维码继续阅读
2020-05-10