在Mac 10.9.1上由sudo pip install pil出错

Dil*_*Mac 4 python django macos xcode

我试图在Mac 10.9.1上安装PIL我收到一条错误消息,我无法在这里找到.我已经安装了Python27,pip,DJango,现在我尝试安装:

sudo pip install pil
Run Code Online (Sandbox Code Playgroud)

我收到的消息:

Downloading/unpacking PIL
  Could not find any downloads that satisfy the requirement PIL
  Some externally hosted files were ignored (use --allow-external PIL to allow).
Cleaning up...
No distributions at all found for PIL
Storing debug log for failure in /Users/xxx/Library/Logs/pip.log
Run Code Online (Sandbox Code Playgroud)

有人知道如何解决这个错误吗?

在Xcode上,我检查了是否安装了命令行工具,但它没有出现在Xcode-> preferences-> Download下.

非常感谢您的帮助

Lau*_*Mat 8

有一个名为Pillow的PIL分支,很可能会解决你的问题.