错误:命令"gcc"失败,退出状态为CentOS 1 [英] error: command 'gcc' failed with exit status 1 on CentOS

查看:126
本文介绍了错误:命令"gcc"失败,退出状态为CentOS 1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用sudo pip install lxml在CentOS上安装lxml软件包,并在结尾处抛出该错误:

I'm trying to install lxml package on CentOS using sudo pip install lxml and its throwing this error right at the end:

error: command 'gcc' failed with exit status 1

---------------------------------------

Command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-build-root/lxml/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-PjviBq-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip-build-root/lxml
Storing complete log in /root/.pip/pip.log

[hg@user-centos-1 ~]$ error: command 'gcc' failed with exit status 1
bash: error:: command not found

推荐答案

是否已安装gcc?

sudo yum install gcc

这篇关于错误:命令"gcc"失败,退出状态为CentOS 1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆