当前位置: 移动技术网 > IT编程>数据库>Mysql > python安装 MySQL-python 报错如何解决?

python安装 MySQL-python 报错如何解决?

2018年02月03日  | 移动技术网IT编程  | 我要评论
操作系统:linux 语言环境:python2.7 错误提示: Collecting MySQL-python Using cached MySQL-python-

操作系统:linux

语言环境:python2.7

错误提示:

Collecting MySQL-python
  Using cached MySQL-python-1.2.5.zip
    Complete output from command python setup.py egg_info:
    sh: mysql_config: command not found
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-7jCQHa/MySQL-python/setup.py", line 17, in <module>
        metadata, options = get_config()
      File "setup_posix.py", line 43, in get_config
        libs = mysql_config("libs_r")
      File "setup_posix.py", line 25, in mysql_config
        raise EnvironmentError("%s not found" % (mysql_config.path,))
    EnvironmentError: mysql_config not found

解决方案:yum -y install mysql-devel

再安装

如您对本文有疑问或者有任何想说的,请 点击进行留言回复,万千网友为您解惑!

相关文章:

验证码:
移动技术网