我想删除所有现有的SDK版本以及Xcode 4.
Xcode 4指南说要这样做:
sudo /Xcode4/Library/uninstall-devtools --mode=all
Run Code Online (Sandbox Code Playgroud)
但是我在这个位置没有Xcode4,而且我看到它的唯一地方就在了 /Developer/Applications
我已经运行了之前找到的uninstall-devtools,/Developer/Applications然后重新安装.
我还能做些什么来完全删除所有内容并从头开始?
来自PIL setup.py构建的一些背景知识:
--------------------------------------------------------------------
PIL 1.1.7 SETUP SUMMARY
--------------------------------------------------------------------
version 1.1.7
platform linux2 2.6.2 (release26-maint, Apr 19 2009, 01:58:18)
[GCC 4.3.3]
--------------------------------------------------------------------
*** TKINTER support not available
--- JPEG support available
--- ZLIB (PNG/ZIP) support available
--- FREETYPE2 support available
*** LITTLECMS support not available
--------------------------------------------------------------------
Run Code Online (Sandbox Code Playgroud)
这是在Ubuntu 9.04上安装的.
我只需要PIL来启用Django上传和调整各种图像(不同格式)的大小.不幸的是,它目前无法处理JPEG.在执行PIL的selftest.py之后,它想出了这个:
*** The _imaging C module is not installed
Run Code Online (Sandbox Code Playgroud)
我尝试使用python -v解释器导入Image和_imaging(两者都有效)...
>>> from PIL import Image
import PIL # directory PIL
# PIL/__init__.pyc matches PIL/__init__.py
import PIL # precompiled from PIL/__init__.pyc
# PIL/Image.pyc …Run Code Online (Sandbox Code Playgroud) 运行MAC 10.7.2在尝试安装PIL时,在解决了许多gcc问题后,安装将退出此行:
/Developer/SDKs/MacOSX10.6.sdk/usr/include/stdarg.h:4:25:错误:stdarg.h:没有这样的文件或目录
我正在使用这一行进行安装:
env ARCHFLAGS="-arch i386 -arch x86_64" easy_install PIL
Run Code Online (Sandbox Code Playgroud)
全输出:
警告:''不是有效的包名; 请在setup.py中使用only.-分隔的软件包名称---使用/ 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