繁体   English   中英

pip安装lxml centOS lxml的构建轮子失败

[英]Pip install lxml centOSFailed building wheel for lxml

执行pip install lxml或pip install pyquery会出现此错误:

gcc: error trying to exec 'cc1': execvp: No such file or directory
  error: command 'gcc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for lxml
Failed to build lxml

还有后来的这个错误

gcc: error trying to exec 'cc1': execvp: No such file or directory
    error: command 'gcc' failed with exit status 1

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

我努力了

yum install gcc
yum remove audit
yum install gcc
yum install libxslt-devel libxml2-devel
yum install python-devel

在centOS 6.6和使用python 3.3.3上。

在此先感谢您的帮助!

  1. 此处下载lxml‑3.4.3‑cp34‑none‑win32.whl
  2. 更改目录以下载lxml软件包下载位置

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM