- Install Google App Engine at first (details at http://code.google.com/appengine)
- sudo port install py25-pil (this will install python2.5 and PIL)
- virtualenv --python=`python2.5` --no-site-packages appengine
- enable your virtual environment
- pip install PIL
that's all.