码迷,mamicode.com
首页 > 数据库 > 详细

安装mysql-python时报错

时间:2018-12-01 15:14:10      阅读:189      评论:0      收藏:0      [点我收藏+]

标签:evel   报错   getattr   安装mysql   setup.py   时报   get   com   pre   

pip install mysql-python时报:

Command "/usr/home/root/python2.7.14/bin/python -u -c "import setuptools, tokenize;__file__=/tmp/pip-build-yabeSc/mysql-python/setup.py;f=getattr(tokenize, open, open)(__file__);code=f.read().replace(\r\n, \n);f.close();exec(compile(code, __file__, exec))" install --record /tmp/pip-fT9aIj-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-yabeSc/mysql-python/

原因:

未安装mysql-devel开发包

yum install mysql-devel

 

安装mysql-python时报错

标签:evel   报错   getattr   安装mysql   setup.py   时报   get   com   pre   

原文地址:https://www.cnblogs.com/lucky-heng/p/10048869.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!