【发布时间】:2013-11-26 04:07:40
【问题描述】:
我正在尝试使用 sudo pip install lxml 在 CentOS 上安装 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
【问题讨论】:
-
可以分享
/root/.pip/pip.log的相关部分吗?
标签: python linux bash pip centos