传递Django-cms配置后出现以下错误。似乎缺少一些非python包。
EnvironmentError: Pillow is not compiled with PNG support, see 'Libraries installation issues' documentation section: http://djangocms-installer.readthedocs.org/en/latest/libraries.html.
Pillow is not compiled with JPEG support, see 'Libraries installation issues' documentation section: http://djangocms-installer.readthedocs.org/en/latest/libraries.html
从哪里以及如何安装这些软件包?我在哪个目录中安装它们? Python根目录还是django-cms virtualenv lib?
答案 0 :(得分:1)
假设您使用的是Ubuntu 14.04或更高版本,请运行sudo apt-get install libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk
,然后在您的virtualenv中重新安装Pillow
(或重新创建virtualenv)。