安装django-cms时遇到的PNG support to Pillow 问题解决方法
2015-01-20 16:55
561 查看
ubuntu 64位 14.04 python2.7
见http://docs.django-cms.org/en/latest/introduction/install_from_scratch.html
在django cms 文档中http://djangocms-installer.readthedocs.org/en/latest/libraries.html可查出需要额外的库进行pillow格式支持,不过安装时进行的requirement检查无法发现。
在pillow官网文档可找到解决方法http://pillow.readthedocs.org/installation.html
Many of Pillow’s features require external libraries:
libjpeg provides JPEG functionality.
Pillow has been tested with libjpeg versions 6b, 8, and 9 and libjpeg-turbo version 8.
zlib provides access to compressed PNGs
libtiff provides compressed TIFF functionality
Pillow has been tested with libtiff versions 3.x and 4.0
libfreetype provides type related services
littlecms provides color management
Pillow version 2.2.1 and below uses liblcms1, Pillow 2.3.0 and above uses liblcms2. Tested with 1.19 and 2.2.
libwebp provides the WebP format.
Pillow has been tested with version 0.1.3, which does not read transparent WebP files. Versions 0.3.0 and 0.4.0 support transparency.
tcl/tk provides support for tkinter bitmap and photo images.
openjpeg provides JPEG 2000 functionality.
Pillow has been tested with openjpeg 2.0.0 and 2.1.0.
运行如下
Prerequisites are installed on Ubuntu 14.04 LTS with:
然后卸载重新安装pillow即可
virtualenv 建立虚拟环境,到djangocms -p . mysite 这一步时出现错误提示pillow的png格式不支持
见http://docs.django-cms.org/en/latest/introduction/install_from_scratch.html
在django cms 文档中http://djangocms-installer.readthedocs.org/en/latest/libraries.html可查出需要额外的库进行pillow格式支持,不过安装时进行的requirement检查无法发现。
在pillow官网文档可找到解决方法http://pillow.readthedocs.org/installation.html
Many of Pillow’s features require external libraries:
libjpeg provides JPEG functionality.
Pillow has been tested with libjpeg versions 6b, 8, and 9 and libjpeg-turbo version 8.
zlib provides access to compressed PNGs
libtiff provides compressed TIFF functionality
Pillow has been tested with libtiff versions 3.x and 4.0
libfreetype provides type related services
littlecms provides color management
Pillow version 2.2.1 and below uses liblcms1, Pillow 2.3.0 and above uses liblcms2. Tested with 1.19 and 2.2.
libwebp provides the WebP format.
Pillow has been tested with version 0.1.3, which does not read transparent WebP files. Versions 0.3.0 and 0.4.0 support transparency.
tcl/tk provides support for tkinter bitmap and photo images.
openjpeg provides JPEG 2000 functionality.
Pillow has been tested with openjpeg 2.0.0 and 2.1.0.
运行如下
Prerequisites are installed on Ubuntu 14.04 LTS with:
$ sudo apt-get install libtiff5-dev libjpeg8-dev zlib1g-dev \ libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk
然后卸载重新安装pillow即可
相关文章推荐
- HOWTO install and setup Android NDK for Linux(Android NDK安装遇到的问题和解决方法)
- windows及linux下安装django simple captcha 遇到的各种问题及解决的方法
- Unity 安装 Support-for-Editor 时出现 failed to local unity.exe 问题的解决方法
- 记录下 linux安装织梦cms遇到的问题和解决方法
- 【个人笔记】anaconda安装遇到的问题:failed to creat anaconda menus的解决方法
- [转]同时安装MSSQL2000与MSSQL2005时所遇到的问题及解决方法小记
- fedora6的安装及一些可能遇到问题的解决方法
- Linq to SQL Delete时遇到问题的解决方法
- Vmware虚拟机安装solaris10遇到的网络等配置问题及解决方法
- 我在安装TFS 2008的时候遇到的问题以及解决方法一账户问题
- 安装android-ndk-1.5_r1遇到的问题及解决方法
- 我在安装TFS 2008的时候遇到的问题以及解决方法一安装TFS需要注意的地方
- python中cx_Oracle模块安装遇到的问题与解决方法
- Team Foundation Server 安装时遇到的问题与解决方法总结
- SCO UNIXWARE 7.1.3中安装oracle 7.2.3 遇到的问题和解决方法
- SuseLInux下安装Ruby 及 Rails遇到的问题及解决方法
- Linq to SQL Delete时遇到问题的解决方法
- 安装PHP可能遇到的问题“无法载入mysql扩展” 的解决方法
- 在windows2003下安装Microsoft SQL Server2000企业版后配置客户端ODBC遇到的问题及解决方法
- 我在安装TFS 2008的时候遇到的问题以及解决方法一windows 2003 iis中总是不出现ASP.NET 2.0