2014-12-02 6 views
0

lxml을 pip로 설치하려고합니다.lxml 설치 중 오류가 발생했습니다.

bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: xml. Do you need to install a parser library? 

위의 오류 (예 : here)의 빠른 검색이 나는 LXML를 설치해야 밝혀 내 스크립트를 실행할 때 나는이 초기 오류가 발생했습니다. 무슨 일이 일어나고 있는지

clang: error: unknown argument: '-mno-fused-madd' 

error: command 'cc' failed with exit status 1 

어떤 생각 :

나는 다음과 같은 오류가 발생 LXML를 설치하는 중에?

답변

1

Xcode 5 Release Notes에 따르면 환경 변수 다음

The Apple LLVM compiler in Xcode 5.1 treats unrecognized command-line options as errors. This issue has been seen when building both Python native extensions and Ruby Gems, where some invalid compiler options are currently specified.

...

To workaround this issue, set the ARCHFLAGS environment variable to downgrade the error to a warning. For example, you can install a Python native extension with:

$ ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future \ 
    easy_install ExtensionName 

설정을 lxml를 설치하기 전에 :

export ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future 
관련 문제