ubuntu安装EnvironmentError: mysql_config not found错误

前端之家收集整理的这篇文章主要介绍了ubuntu安装EnvironmentError: mysql_config not found错误前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
  1. Complete output from command python setup.py egg_info:
  2. sh: 1: MysqL_config: not found
  3. Traceback (most recent call last):
  4. File "<string>",line 1,in <module>
  5. File "/tmp/pip-build-4mLxpd/MysqL-python/setup.py",line 17,in <module>
  6. Metadata,options = get_config()
  7. File "/tmp/pip-build-4mLxpd/MysqL-python/setup_posix.py",line 43,in get_config
  8. libs = MysqL_config("libs_r")
  9. File "/tmp/pip-build-4mLxpd/MysqL-python/setup_posix.py",line 25,in MysqL_config
  10. raise EnvironmentError("%s not found" % (MysqL_config.path,))
  11. EnvironmentError: MysqL_config not found

解决办法:

  1. sudo apt-get install libMysqLclient-dev

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

猜你在找的Ubuntu相关文章