2013-12-11 15 views
3
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I/usr/include/libxml2 -I/private/tmp/pip_build_root/lxml/src/lxml/includes -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.macosx-10.9-intel-2.7/src/lxml/lxml.etree.o -flat_namespace 

clang: warning: argument unused during compilation: '-mno-fused-madd' 

clang: warning: argument unused during compilation: '-flat_namespace' 

In file included from src/lxml/lxml.etree.c:16: 

/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:33:10: fatal error: 'stdio.h' file not found 


error: command 'cc' failed with exit status 1 
+0

+1同樣的情況在這裏。安裝Xcode之後,我在執行pip install lxml時仍然遇到這些相同的錯誤。 –

回答

0

這可能是值得人們一定要裝好(xcode-select --install)的Xcode命令行工具,每an answer to a similar question

在某些情況下,只有在sudoer在Xcode中籤署了Apple的服務條款之後才能使用命令行工具,因此請確保您也這樣做(我不認爲您可以在沒有做無論如何,後者)。

希望有所幫助。