gpt4 book ai didi

python - PIL 安装失败缺少 :stdarg. h

转载 作者:太空狗 更新时间:2023-10-29 11:34:05 26 4
gpt4 key购买 nike

<分区>

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

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

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

我正在使用这一行进行安装:

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

完整输出:

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

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com