首页 > 编程语言 > 详细

Python之easy_install安装出错

时间:2014-03-28 19:10:26      阅读:484      评论:0      收藏:0      [点我收藏+]

环境:mac os x 10.9.2

python版本:2.7.5

easy_install对于Python相当于apt之于Ubuntu,安装其他库十分方便,但是最近安装PIL(Python Imaging Library),这个强大的图形库时竟然出错了,十分抓狂。错误信息如下:

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

经网上查证:http://www.tuicool.com/articles/zI7Vzu,貌似是mac os的Xcode从5.1起给编译器规定对于未知参数传入视为error,我们需要使用ARCHFLAGS将该error降级为warning,因此最后的安装命令应该如下:

sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future easy_install PIL

希望对大家有帮助。

Python之easy_install安装出错,布布扣,bubuko.com

Python之easy_install安装出错

原文:http://blog.csdn.net/xanxus46/article/details/22325253

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!