I've been trying to find a better way to deploy my django sites so I've started exploring virtualenv and pip. One of my apps uses djangos ImageField so I needed to install pythons imaging library, PIL. I was working on a completely clean fresh install of ubuntu 10.04 and python. Trying to install PIL caused an error, a missing file, I think Python.h.

A quick search didn't throw up much in the way of a solution but I did stumble across this. The solution on ubuntu is to install python-dev and bobs your uncle PIL will install inside of my virtualenv