Ferhat Elmas — Passionate Developer

PIL installation

22 April ’13

PIL must be installed to use ImageField in Django models and installation of PIL is a bit cumbersome. However, if you are using virtualenv, it is straightforward. By the way, it is a great tool in general, get it into your flow. This is just one of the use of cases.

  • Install python-dev from your distribution packages like:
    • $ sudo apt-get install python-dev
  • Then, install PIL via pip (be aware of case):
    • $ pip install PIL

By virtualenv, there is no need to do other hacks and ready to use by these two simple commands.