Python之easy_install安装出错
2014-03-27 22:14
176 查看
环境: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版本: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安装easyinstall/pip出错
- pip easy_install 安装python第三方库 超时报错
- Python - Windows下安装easy_install, pip 及whl文件安装方法
- python下安装easy_install、pip遇到的问题
- ubuntu安装easy_install命令方法,mysql-python安装时EnvironmentError: mysql_config not found
- Python包管理工具easy_install安装
- python2.7无法使用pip(安装easy_install)
- Python包管理工具easy_install安装
- Python 开发中easy_install的安装及使用
- python自动安装工具easy_install的使用
- python:easy_install安装第三方库
- [Python] easy_install 和 pip 在windows 下的安装
- easy_install安装,更新模块 python
- 【python】(备忘)安装模块最好用easy_install 命令
- Python中的包安装工具easy_install
- Python-- easy_install 的安装
- 为Python安装easy_install工具
- python setuptools six pip easy_install 安装冲突
- python 自动安装工具 setuptools(easy_install) 的使用