5月 162019
centos7.6 下python2.7版本使用pip install MySQL-python可能出现下面错误:
可能问题一: ERROR: Complete output from command python setup.py egg_info:
ERROR: sh: mysql_config: 未找到命令
解决办法: yum install mysql-devel
再次安装,没问题最好, 如果出现下面问题:
可能问题二:_mysql.c:29:20: 致命错误:Python.h:没有那个文件或目录
#include “Python.h”
解决办法: yum install python-devel
再次安装 : pip install MySQL-python
问题解决!
Sorry, the comment form is closed at this time.