首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Centos上安装mysql-python

在Centos上安装mysql-python
EN

Stack Overflow用户
提问于 2010-06-22 05:10:35
回答 2查看 9.7K关注 0票数 5

正在尝试安装mysql-python。出现以下错误。我已经安装了mysql和pythond。我们将非常感谢您的帮助。

代码语言:javascript
复制
[root@uu include]# easy_install mysql-python
Searching for mysql-python
Reading http://cheeseshop.python.org/pypi/mysql-python/
Couldn't find index page for 'mysql-python' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://cheeseshop.python.org/pypi/
Reading http://cheeseshop.python.org/pypi/MySQL-python/1.2.3c1
Reading http://sourceforge.net/projects/mysql-python
Best match: MySQL-python 1.2.3c1
Downloading http://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.3c1.tar.gz#md5=310dd856e439d070b59ece6dd7a0734d
Processing MySQL-python-1.2.3c1.tar.gz
Running MySQL-python-1.2.3c1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-toQ0nx/MySQL-python-1.2.3c1/egg-dist-tmp-OeN5eG
unable to execute gcc: No such file or directory
error: Setup script exited with error: command 'gcc' failed with exit status 1
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2010-06-22 05:23:17

您需要安装gcc (在centos上,一些开发工具)

票数 8
EN

Stack Overflow用户

发布于 2012-01-06 09:07:29

这将安装GCC等人经常需要的:

代码语言:javascript
复制
yum groupinstall 'Development Tools'

也可以单独安装,即yum install gcc

票数 15
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/3088548

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档