如何在Mac OSX 10.5.8上为Google App Engine安装PIL? [英] How to install PIL on Mac OSX 10.5.8 for Google App Engine?

查看:140
本文介绍了如何在Mac OSX 10.5.8上为Google App Engine安装PIL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在本地安装PIL来测试GAE的图片API。



我抓住了Mac的PIL 1.1.6安装程序,当我离开(安装时),我得到错误:

 您无法在此卷上安装PIL 1.1.6。 
PIL需要安装系统Python 2.5。

我在这台机器上安装了Python 2.5.x。



注意:

新增赏金。我真的需要在我的Mac上本地测试图像API。


  1. 安装 MacPorts

  2. 使用安装 Python 2.5 sudo port install python25

  3. 使用安装 Pil for Python 2.5 安装py25-pil

  4. 在Google App Engine启动程序首选项中将 /opt/local/bin/python2.5 设置为 Python路径 *

  5. 重新启动Google App Engine启动器

  6. 快乐编码



  7. *一定要用ENTER确认,否则不会持续


    I need to get PIL installed locally to test GAE's images api in my local environment.

    I grabbed the PIL 1.1.6 installer for Mac, and when I go to select the destination (when installing), I get the error:

    You cannot install PIL 1.1.6 on this volume. 
    PIL requires System Python 2.5 to install.
    

    I have Python 2.5.x on this machine.

    NOTE:

    Added a bounty. I am in real need of a way to test the image API locally on my Mac.

    解决方案

    That's quite easy:

    1. Install MacPorts
    2. Install Python 2.5 with sudo port install python25
    3. Install Pil for Python 2.5 with sudo port install py25-pil
    4. In the Google App Engine launcher Preferences set /opt/local/bin/python2.5 as Python Path *
    5. Restart the Google App Engine launcher
    6. Happy coding

    * be sure to confirm it with an ENTER or it will not persist

    这篇关于如何在Mac OSX 10.5.8上为Google App Engine安装PIL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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