美文网首页
Install PIL in Ubuntu 12.04 Pyt

Install PIL in Ubuntu 12.04 Pyt

作者: 汲晌 | 来源:发表于2014-05-12 09:56 被阅读81次

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 Pyt

      本文链接:https://www.haomeiwen.com/subject/zpgrtttx.html