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啦~

相关文章

ubuntu退出redis的示例:指定配置文件方式启动源码redis:roo...
ubuntu中mysql改密码忘了的解决方法:1.在终端中切换到root权...
ubuntu安装mysql失败的解决方法原因:可能是原有的MySQL还有...
使用centos和ubuntu建站的区别有以下几点1.CentOS是Linux发行...
ubuntu图形界面和字符界面切换的方法:可以通过快捷键CTRL+A...
ubuntu中重启mysql失败的解决方法1.首先,在ubuntu命令行中,...