报错1:
UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xd7 in position 9: ordinal not in range(128)
解决方法:
import sys
reload(sys)
sys.setdefaultencoding('utf8')
pip install mysql-python
报错2:
_mysql.c:44:23: 致命错误:my_config.h:没有那个文件或目录
编译中断
error: command 'gcc' failed with exit status 1
没有找到my_config.h
解决方法:
yum install mysql-devel