pip install MySQL-python 报 "EnvironmentError: mysql_config not found"
2017-10-11 17:02
2461 查看
pip安装python访问mysql第三方模块
解决方法:
centos:
ubuntu:
MySQL-python报以下错误
$ pip install MySQL-python Collecting mysql-python Using cached MySQL-python-1.2.5.zip Complete output from command python setup.py egg_info: sh: mysql_config: 未找到命令 Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-build-Ukpo7y/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 ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-Ukpo7y/mysql-python/
解决方法:
centos:
$ yum install -y mysql-devel python-devel $ pip install MySQL-python
ubuntu:
$ apt-get install python-dev $ pip install MySQL-python
相关文章推荐
- pip install mysql-python 提示myql_config not found
- [python]"python[error] mysql_config not found"错误解决方法
- python学习笔记-安装mysql-python:EnvironmentError: mysql_config not found
- configure: error:" wrong mysql library version or lib not found. Check config.log for more informati
- mysql-python安装时EnvironmentError: mysql_config not found
- pip install pycurl "Error: Could not run curl-config: [Errno 2] No such file or directory"
- python pip install 报错TypeError: unsupported operand type(s) for -=: 'Retry' and 'int' Command "python setup.py egg_info" failed with error code 1 in
- mysql-python安装时EnvironmentError: mysql_config not found
- pip install mysql-python fails with EnvironmentError: mysql_config not found
- 安装gz包的Mysql提示 "LinuxThreads"... "Not found"
- 安装mysql-python:EnvironmentError: mysql_config not found
- python错误汇总3:安装MySQLdb时:EnvironmentError: mysql_config not found
- 解决python下装MySQL报错:EnvironmentError: mysql_config not found
- pip install mysql-python fails with EnvironmentError: mysql_config not found
- make install时"arm-linux-ranlib command not found"
- Eclipse Wowza 插件报 "The builder launch configuration could not be found" 错误的解决办法
- "ASIHTTPRequest"使用报错:ARC forbids explicit...及#import <libxml/HTMLparser.h> file not found
- 更新证书,打包异常"UUID not found"
- 安装mysql-python时,报错 Python version 2.7 required, which was not found in the registry.