python - installing lxml in OSX 10.9 -
i have problem installing lxml
in mavericks machine.
i tried possibilities installing prebuild binaries using
- normal pip
- pip
static deps
and building
- current version in normal model
- current version static deps
- older version in normal mode
- older version static deps
and end in error.
clang: error: unknown argument: '-mno-fused-madd' [-wunused-command-line-argument-hard-error-in-future] clang: note: hard error (cannot downgraded warning) in future error: command 'cc' failed exit status 1
here detailed message
copying /users/mangoreader/work/lxml-3.3.4/build/tmp/libxml2/include/libxslt/xsltutils.h -> build/lib.macosx-10.9-intel-2.7/lxml/includes/libxslt running build_ext building 'lxml.etree' extension 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/users/mangoreader/work/lxml-3.3.4/build/tmp/libxml2/include -i/users/mangoreader/work/lxml-3.3.4/build/tmp/libxml2/include/libxml2 -i/users/mangoreader/work/lxml-3.3.4/build/tmp/libxml2/include/libxslt -i/users/mangoreader/work/lxml-3.3.4/build/tmp/libxml2/include/libexslt -i/users/mangoreader/work/lxml-3.3.4/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: hard error (cannot downgraded warning) in future error: command 'cc' failed exit status 1
also when tried installing cython
, getting same error
clang: error: unknown argument: '-mno-fused-madd' [-wunused-command-line-argument-hard-error-in-future] clang: note: hard error (cannot downgraded warning) in future error: command 'cc' failed exit status 1
detailed log here
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/system/library/frameworks/python.framework/versions/2.7/include/python2.7 -c /private/var/folders/1z/7lv1qq457qxbhkgpt1fk9sdc0000gn/t/pip_build_mangoreader/cython/cython/plex/scanners.c -o build/temp.macosx-10.9-intel-2.7/private/var/folders/1z/7lv1qq457qxbhkgpt1fk9sdc0000gn/t/pip_build_mangoreader/cython/cython/plex/scanners.o clang: error: unknown argument: '-mno-fused-madd' [-wunused-command-line-argument-hard-error-in-future] clang: note: hard error (cannot downgraded warning) in future error: command 'cc' failed exit status 1 ---------------------------------------- cleaning up... command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/var/folders/1z/7lv1qq457qxbhkgpt1fk9sdc0000gn/t/pip_build_mangoreader/cython/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/1z/7lv1qq457qxbhkgpt1fk9sdc0000gn/t/pip-0akrmb-record/install-record.txt --single-version-externally-managed --compile failed error code 1 in /private/var/folders/1z/7lv1qq457qxbhkgpt1fk9sdc0000gn/t/pip_build_mangoreader/cython storing debug log failure in /users/mangoreader/library/logs/pip.log
i totally struck here. seems version conflict gcc or libxml. could't figure out what. appreciated.
solved
as per post clang error: unknown argument: '-mno-fused-madd' (python package installation failure), can fixed setting following env variables
export cflags=-qunused-arguments export cppflags=-qunused-arguments
i sure that sorted out, in case else needs it, install xcode , command line tools , run
pip install lxml
it work, may take little time.
Comments
Post a Comment