Install PIL in Ubuntu 12.04 Python 3.2

Ubuntu 12.04 LTS

(1) sudo apt-get install libtiff4-dev libjpeg8-dev zlib1g-dev
libfreetype6-dev liblcms2-dev libwebp-dev tcl8.5-dev tk8.5-dev python-tk

(2) sudo apt-get install python3-dev python3-setuptools
( sudo aptitude install python3-setuptools
sudo easy_install3 pip
sudo apt-get install python3-dev)

pip install Pillow

(3) # download Pillow's master.zip
wget https://github.com/python-imaging/Pillow/archive/master.zip

(4) sudo unzip master.zip (under Pillow's master.zip path cd /home/niaot/)

(5) python3 setup.py build(under Pillow-maste path cd /home/niaot/Pillow-maste)(6) python3 setup.py install(as (5))

http://pillow.readthedocs.org/en/latest/installation.html
http://stackoverflow.com/questions/15002538/install-pil-in-ubuntu-12-04-python-2-7-and-python-3-2

你可能感兴趣的:(Install PIL in Ubuntu 12.04 Python 3.2)