pip install lxml 报错error: command 'gcc' failed with exit status 1
时间:2015-01-10 13:06 来源:linux.it.net.cn 作者:IT
pip安装lxml时一直示下面的错误,
1
2
3
4
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-GXYlqv/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-KYOmzz-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-GXYlqv/lxml
网上查了很查才找到可用的答案:
1
2
3
yum remove audit
yum install gcc
yum install libxslt-devel libxml2-devel
(责任编辑:IT)
pip安装lxml时一直示下面的错误,
网上查了很查才找到可用的答案:
(责任编辑:IT) |