2015-06-27 145 views
2

做PIP安裝LXML或點子安裝pyquery給出了這樣的錯誤:皮普安裝LXML centOSFailed建築輪LXML

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。

在此先感謝您的幫助!

回答

0
  1. 下載從here
  2. LXML-3.4.3-CP34-NONE-win32.whl PIP安裝輪
  3. 更改目錄下載LXML包下載位置
  4. PIP安裝LXML-3.4 .3-cp34-none-win32.whl
+0

你確定這個windows whl適用於centos – unlockme