求救,pyquery的安装问题

jiangximifen 2014-04-23 06:51:33
各位大侠,
小弟在安装pyquery的时候,遇到下面的错误告警是什么意思呀,需要如何处理?

Building without Cython.
Using build configuration of libxslt 1.1.28
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'
warnings.warn(msg)
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: Setup script exited with error: command 'cc' failed with exit status 1

偶就是直接从官网下载程序,然后运行sudo python setup.py install。对了,我用的机器是mac。
...全文
345 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
jiangximifen 2014-04-30
  • 打赏
  • 举报
回复
谢谢lasky大侠,你给的链接很有用。我用下面命令安装成功了。 sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future python setup.py install
iasky 2014-04-23
  • 打赏
  • 举报
回复
https://github.com/romanbsd/fast-stemmer/issues/9 看看也许有用。
jiangximifen 2014-04-23
  • 打赏
  • 举报
回复
多拷贝了一些安装内容: Installed /Library/Python/2.7/site-packages/pyquery-1.2.8-py2.7.egg Processing dependencies for pyquery==1.2.8 Searching for lxml>=2.1 Reading http://pypi.python.org/simple/lxml/ Best match: lxml 3.3.5 Downloading https://pypi.python.org/packages/source/l/lxml/lxml-3.3.5.tar.gz#md5=88c75f4c73fc8f59c9ebb17495044f2f Processing lxml-3.3.5.tar.gz Running lxml-3.3.5/setup.py -q bdist_egg --dist-dir /tmp/easy_install-DbgeH8/lxml-3.3.5/egg-dist-tmp-OBDQla Building lxml version 3.3.5. Building without Cython. Using build configuration of libxslt 1.1.28 /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url' warnings.warn(msg) 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: Setup script exited with error: command 'cc' failed with exit status 1

37,719

社区成员

发帖
与我相关
我的任务
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
  • 脚本语言(Perl/Python)社区
  • IT.BOB
加入社区
  • 近7日
  • 近30日
  • 至今

试试用AI创作助手写篇文章吧