Install lxml OSX Mavericks 10.9.2

I am trying to install lxml on Mavericks 10.9.2 and I used all the solutions mentioned above here , but I seem to get another error, the argument '- mno-fused-madd' is unknown, I believe that it just caused a warning then but now it throws an error here log

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/Users/workspace/mybooktype/build/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 -w -flat_namespace clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future error: command 'cc' failed with exit status 1 

UPDATE 1 I initially tried to install the django booktype application following the instructions I tried first

 pip install lxml --install-option="--with-xml2-config=/usr/local/Cellar/libxml2/2.8.0/bin/xml2-config" 
0
python lxml osx-mavericks cc macos
source share
2 answers

Thus, the problem had nothing to do with the C compiler, it was in the python version used on the machine, apparently there was a conflict in the python versions, a new clean python installation solved the problem, and .bash_profile , then we used the original command

 pip install lxml 

and it was successfully installed

+1
source share

you need to install or update the command line tool for xcode. try to execute the command in the terminal:

 xcode-select --install 
+1
source share

All Articles