在 Ubuntu 上安装 django-cms 时出现环境错误

Environment error while installing django-cms on Ubuntu

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 库?

假设您使用 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) .