简体   繁体   English

使用PIP INSTALLER在MAC OS X LION 10.7.2上安装PIL

[英]Installing PIL on MAC OS X LION 10.7.2 with PIP INSTALLER

I am trying to install PIL using PIP installer, and I'm getting this: 我正在尝试使用PIP安装程序安装PIL,我得到了这个:

llvm-gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -IlibImaging -I/System/Library/Frameworks/Python.framework/Versions/2.7/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _imaging.c -o build/temp.macosx-10.7-intel-2.7/_imaging.o

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

error: command 'llvm-gcc-4.2' failed with exit status 1

Any clues what the problem might be ? 任何线索可能是什么问题?

I have Mac OS X Lion and LLVM is installed in the XCODE Developer tools... What can be wrong ? 我有Mac OS X Lion和LLVM安装在XCODE Developer工具中......有什么不对?

i got the same error. 我得到了同样的错误。 but additionally need to install the "commandline tools" under settings 但另外需要在设置下安装“命令行工具” 在此输入图像描述

edit: just a few keywords for google, if someone is looking for this! 编辑:谷歌的几个关键词,如果有人正在寻找这个! easy_install pip gcc not found mac osx xcode may be a moderator add this keywords to the question easy_install pip gcc not found mac osx xcode可能是主持人将此关键字添加到问题中

Are you sure you have actually run the Xcode installer (usually found in /Applications )? 您确定您实际上已经运行了Xcode安装程序(通常位于/Applications )吗? Downloading it from the Mac App Store doesn't automatically run the installer. 从Mac App Store下载它不会自动运行安装程序。

Check that you have installed XCode. 检查您是否安装了XCode。 Try installing a PIL from homebrew package manager 尝试从自制软件包管理器安装PIL

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM