
1 heqing Mar 21, 2014 |
2 binux Mar 21, 2014 brew |
3 kchum OP @heqing 在lxml源代码目录的setup.cfg加入了[build_ext] compiler=icc,命令运行 sudo python setup.py build --static-deps --libxml2-version=2.9.1 --libxslt-version=1.1.28 同样出现 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 @binux 我是用brew install libxml2 libxslt了,上面有笔误。不知道你所说的是什么意思,麻烦指点下,谢谢。 |
4 binux Mar 21, 2014 |
5 rockhead Mar 21, 2014 给Xcode设置环境变量: ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future 新版的xcode 检查更严格了,没有使用的命令行参数会当成错误处理 |
6 rockhead Mar 21, 2014 单行命令如下: env ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install lxml |
7 kchum OP @heqing @binux @rockhead 感谢大家,如 @rockhead 所写的一样,已安装上。 我这Cannot fetch index base URL https://pypi.python.org/simple/ 所以用v2的源 env ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install lxml -i http://pypi.v2ex.com/simple |