PIL安装失败:stdarg.h [英] PIL Installation Fails missing:stdarg.h

查看:89
本文介绍了PIL安装失败:stdarg.h的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
安装Python Imaging Library(PIL )在雪豹上使用更新的Python 2.6.2

Possible Duplicate:
Installing Python Imaging Library (PIL) on Snow Leopard with updated Python 2.6.2

运行MAC 10.7.2在尝试安装PIL时,在解决了许多gcc问题之后,安装退出并显示以下行:

Runing MAC 10.7.2 While trying to install PIL, after resolving many gcc issues, the installation exits with this line:

/Developer/SDKs/MacOSX10.6.sdk/usr/include/stdarg.h:4:25:错误: stdarg.h:没有这样的文件或目录

/Developer/SDKs/MacOSX10.6.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory

我正在使用此行进行安装:

i'm using this line for install:

env ARCHFLAGS="-arch i386 -arch x86_64" easy_install PIL

完整输出:

警告:"不是有效的软件包名称;请仅使用. setup.py中的软件包名称 ---使用/System/Library/Frameworks中的框架在以下文件中包含的文件中 /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/unicodeobject.h:4, 来自/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:85, 来自_imaging.c:75:/Developer/SDKs/MacOSX10.6.sdk/usr/include/stdarg.h:4:25:错误: stdarg.h:没有这样的文件或目录 _imaging.c:3017:警告:从不兼容的指针类型初始化 _imaging.c:3077:警告:从不兼容的指针类型进行初始化在包含的文件中 /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/unicodeobject.h:4, 来自/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:85, 来自_imaging.c:75:/Developer/SDKs/MacOSX10.6.sdk/usr/include/stdarg.h:4:25:错误: stdarg.h:没有这样的文件或目录 _imaging.c:3017:警告:从不兼容的指针类型初始化 _imaging.c:3077:警告:从不兼容的指针类型lipo初始化:无法确定以下对象的体系结构类型: /var/folders/2l/nrkm12097b58kk8n9hrbtz840000gn/T//cckCPEox.out错误: 安装脚本退出并显示错误:命令"gcc-4.2"失败并退出 状态1

WARNING: '' not a valid package name; please use only.-separated package names in setup.py --- using frameworks at /System/Library/Frameworks In file included from /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/unicodeobject.h:4, from /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:85, from _imaging.c:75: /Developer/SDKs/MacOSX10.6.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory _imaging.c:3017: warning: initialization from incompatible pointer type _imaging.c:3077: warning: initialization from incompatible pointer type In file included from /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/unicodeobject.h:4, from /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:85, from _imaging.c:75: /Developer/SDKs/MacOSX10.6.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory _imaging.c:3017: warning: initialization from incompatible pointer type _imaging.c:3077: warning: initialization from incompatible pointer type lipo: can't figure out the architecture type of: /var/folders/2l/nrkm12097b58kk8n9hrbtz840000gn/T//cckCPEox.out error: Setup script exited with error: command 'gcc-4.2' failed with exit status 1

推荐答案

问题已解决,我采取的步骤:

Problem Solved , the steps i took:

第1步:,此处建议卸载并安装Xcode: http://binarylionstudios .com/blog/2011/01/30/error-stdarg.h-no-such-file-or-directory/

Step 1: Uninstalled and Installed Xcode, suggested here: http://binarylionstudios.com/blog/2011/01/30/error-stdarg.h-no-such-file-or-directory/

要正确删除Xcode,请遵循以下答案: 如何完全删除Xcode 4

to remove Xcode properlly follow this answer: How to fully remove Xcode 4

sudo/Developer/Library/uninstall-devtools --mode = all

sudo /Developer/Library/uninstall-devtools --mode=all

在重新启动Mac后使用install Xcode.app

use the install Xcode.app after you restart your mac

步骤2:重新安装xcode后,安装失败

Step 2: after xcode was reinstalled, the installation failed

无法执行gcc-4.2:没有此类文件或目录PIL

unable to execute gcc-4.2: No such file or directory PIL

解决我关注此帖子的问题: http://aravir-rose.blogspot. com/2011/12/installing-python-27s-imaging-library.html

to resolve that i followed this post: http://aravir-rose.blogspot.com/2011/12/installing-python-27s-imaging-library.html

祝你好运!

这篇关于PIL安装失败:stdarg.h的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆