gpt4 book ai didi

python - pip install lxml centOSFailed building wheel for lxml

转载 作者:太空宇宙 更新时间:2023-11-03 17:17:26 27 4
gpt4 key购买 nike

执行 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. here 下载 lxml‑3.4.3‑cp34‑none‑win32.whl
  2. pip 安装轮
  3. 更改目录下载lxml包下载位置
  4. pip install lxml‑3.4.3‑cp34‑none‑win32.whl

关于python - pip install lxml centOSFailed building wheel for lxml,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31093935/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com