PIP安装lxml centOSFliled建筑轮为lxml [英] Pip install lxml centOSFailed building wheel for lxml
本文介绍了PIP安装lxml centOSFliled建筑轮为lxml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
gcc:尝试执行exec'cc1'时出错:execvp 安装px install或安装pyquery时出现此错误: :没有这样的文件或目录
错误:命令'gcc'失败,退出状态1
--------------------- -------------------
失败的构建轮for lxml
无法构建lxml
此后也出现此错误
gcc:错误尝试exec'cc1':execvp:没有这样的文件或目录
错误:命令'gcc'失败,退出状态1
--------------- -------------------------
命令/ usr / bin / python -cimport setuptools,tokenize; __ file __ ='/ tmp /pip-build-B0y8MK/lxml/setup.py';exec(compile(getattr(tokenize,'open',open)(__ file __)。read()。replace('\r\\\
','\ n'),__file__,'exec'))install --record /tmp/pip-9goo1z-record/install-record.txt --single-version-external-managed -compile失败,错误代码为1 n / tmp / pip-build-B0y8MK / lxml
我试过了
yum install gcc
yum删除审计
yum install gcc
yum install libxslt-devel libxml2-devel
yum install python-devel
关于centOS 6.6和使用python 3.3.3。
感谢您提供任何帮助! b 安装滚轮 安装lxml-3.4.3-cp34-none-win32.whl
Doing pip install lxml or pip install pyquery gives this error:
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
And also this error later on
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
I have tried
yum install gcc
yum remove audit
yum install gcc
yum install libxslt-devel libxml2-devel
yum install python-devel
On centOS 6.6 and using python 3.3.3 .
Thanks in advance for any help!
解决方案
- download lxml‑3.4.3‑cp34‑none‑win32.whl from here
- pip install wheel
- change directory to download lxml package download location
- pip install lxml‑3.4.3‑cp34‑none‑win32.whl
这篇关于PIP安装lxml centOSFliled建筑轮为lxml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文