Setting up Python 3 and pillow

I'm using Linux Mint 15 ("Olivia") for my pypeline development - and ran into a little difficulty right off the bat getting pillow installed. Virtualenv and Virtualenvwrapper are pretty much a must-have if you're developing multiple projects, and pip install pillow was failing with messages like Python.h: No such file or directory despite following the instructions to a T. Turns out since I'm using Python 3, sudo apt-get install python-dev doesn't cut it. What you want is sudo apt-get install python3-dev. Run that once and you should be good to go in your virtualenv.