3424123 发表于 2016-5-10 09:28:37

python爬虫问题:error: command 'gcc' failed with exit status 1

软件安装过程中,在安装lxml的时候出现如下错误
error: command 'gcc' failed with exit status 1

gcc当然没问题,问题原因是缺少相关组件,
安装以下2个组件即可,

yum install libxslt-devel libxml2-devel

回到lxml-3.4.2目录,执行
python setup.py install
安装成功!

页: [1]
查看完整版本: python爬虫问题:error: command 'gcc' failed with exit status 1