安装mysql-python时报错

Posted 永恒de记忆

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了安装mysql-python时报错相关的知识,希望对你有一定的参考价值。

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(
, 
);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时报错的主要内容,如果未能解决你的问题,请参考以下文章

Windows下安装MySQLdb(mysql-python)报错解决

已经装了MySQL-python,但在引用时报错:ImportError: No module named MySQLdb

win7 64 安装mysql-python:_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h

pygame使用pip安装时报错,求解决

关于windows x64安装MySQL-python失败解决

安装python模块时报错如何解决