bbinet / PyGall

PyGall is a photo web gallery based on the Pyramid Python web framework and the Galleria Javascript photo gallery.
https://github.com/bbinet/PyGall
Other
8 stars 2 forks source link

can't have jpeg support when installing PIL in a virtualenv #2

Open bbinet opened 12 years ago

bbinet commented 12 years ago

Here is a workaround: http://natim.ionyse.com/installer-la-pil-python-imaging-library-dans-un-virtualenv.html

bbinet commented 12 years ago

The following solution is better since we don't have to create links system wide but only in the virtualenv:

$ sudo aptitude install libjpeg8 libjpeg8-dev libfreetype6 libfreetype6-dev zlib1g-dev
$ mkvirtualenv pygall
(pygall) $ cdvirtualenv
(pygall) $ ln -s /usr/lib/x86_64-linux-gnu/libz.so ./lib/
(pygall) $ ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so ./lib/
(pygall) $ ln -s /usr/lib/x86_64-linux-gnu/libfreetype.so ./lib/