티스토리 뷰

Image processing lib setting


(sp, ubuntu) need lib for image processing at ubuntu.


Pre-install

1) pip



$ sudo apt-get install libjpeg-dev 

$ sudo apt-get install zlib1g-dev
$ sudo apt-get install libpng12-dev
$ sudo ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib
$ sudo ln -s /usr/lib/x86_64-linux-gnu/libfreetype.so /usr/lib
$ sudo ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib



If differnt name of 'libjpeg.so', 'libfreetype.so', 'libz.so' case, then each files last name plus number. (ls /usr/lib/x86_64-linux-gnu/)


then,


$ pip install Pillow


if get error for Pillow installing, then $ sudo apt-get install libjpeg-dev. $ pip install Pillow

댓글
댓글쓰기 폼
공지사항
최근에 달린 댓글
Total
16,199
Today
24
Yesterday
6
링크
«   2018/04   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          
글 보관함