摘要: 报错提示如下: Runningsetup.pyegg_infoforpackagemysql-python sh:mysql_config:commandnotfound Traceback(mostrecentcalllast): File"<string>",lin
报错提示如下:
Runningsetup.pyegg_infoforpackagemysql-python
sh:mysql_config:commandnotfound
Traceback(mostrecentcalllast):
File<string>,line16,in<module>
File/tmp/pip-build/mysql-python/setup.py,line18,in<module>
metadata,options=get_config()
Filesetup_posix.py,line43,inget_config
libs=mysql_config(libs_r)
Filesetup_posix.py,line25,inmysql_config
raiseEnvironmentError(%snotfound%(mysql_config.path,))
EnvironmentError:mysql_confignotfound
Completeoutputfromcommandpythonsetup.pyegg_info:
sh:mysql_config:commandnotfound
Traceback(mostrecentcalllast):
File<string>,line16,in<module>
File/tmp/pip-build/mysql-python/setup.py,line18,in<module>
metadata,options=get_config()
Filesetup_posix.py,line43,inget_config
libs=mysql_config(libs_r)
Filesetup_posix.py,line25,inmysql_config
raiseEnvironmentError(%snotfound%(mysql_config.path,))
EnvironmentError:mysql_confignotfound
----------------------------------------
Commandpythonsetup.pyegg_infofailedwitherrorcode1in/tmp/pip-build/mysql-python
Storingcompletelogin/root/.pip/pip.log
解决方法
安装mysql-devel后正常运行
yum installmysql-devel
如果手工安装mysql_python
在setup_posix.py内找到mysql_config.path
变成mysql_config.path=/xxx/xxx(mysql安装路径/bin/mysql_config)
相关文章推荐
智能手机建站的优点是什么?网站页面布局有哪些关键点? 2022-01-10
2022年中国云计算面临的问题及发展前景预测分析2021-12-28
绿色智能基础设施连接可持续未来-IDCC2021万国数据第一代Smart DC发布会议程揭晓2021-12-27
阿里云:早期未意识到Apache log4j2漏洞情况的严重性 将强化漏洞管理2021-12-27
云计算开发:Python3-replace()方法详解2021-12-27