install PIL on ubuntu python

I have successfully installed PIL using these commands:

sudo apt-get build-dep python-imagingsudo 
apt-get install libjpeg8 libjpeg62-dev libfreetype6 libfreetype6-devsudo 
pip install Pillow

After these commands I could:

>>> import PIL
>>> PIL.VERSION'1.1.7'

你可能感兴趣的:(install PIL on ubuntu python)