微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

ubuntu安装EnvironmentError: mysql_config not found错误

Complete output from command python setup.py egg_info:
    sh: 1: MysqL_config: not found
    Traceback (most recent call last):
      File "<string>",line 1,in <module>
      File "/tmp/pip-build-4mLxpd/MysqL-python/setup.py",line 17,in <module>
        Metadata,options = get_config()
      File "/tmp/pip-build-4mLxpd/MysqL-python/setup_posix.py",line 43,in get_config
        libs = MysqL_config("libs_r")
      File "/tmp/pip-build-4mLxpd/MysqL-python/setup_posix.py",line 25,in MysqL_config
        raise EnvironmentError("%s not found" % (MysqL_config.path,))
    EnvironmentError: MysqL_config not found

解决办法:

sudo apt-get install libMysqLclient-dev

然后进入MysqL_config的路径( /usr/bin/MysqL_config
sudo updatedb
locate MysqL_config
然后再去安装,ok啦~

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐