相关疑难解决方法(0)

错误:命令'gcc'在CentOS上退出状态1失败

我正在尝试在CentOS上安装lxml软件包sudo pip install lxml并在最后抛出此错误:

错误:

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
Run Code Online (Sandbox Code Playgroud)

python linux bash centos pip

31
推荐指数
5
解决办法
9万
查看次数

标签 统计

bash ×1

centos ×1

linux ×1

pip ×1

python ×1