[zz]Python 3.4 and Pillow 2.4 with JPEG2000 (openjpeg 2) support in Ubuntu 14.04
2014-08-21 16:28
686 查看
Pillow support for JPEG2000 comes from openjpeg 2 library. Unfortunatly, Ubuntu's libopenjpeg2 package is not version 2 of the openjpeg library, but actually version 1.3 which wont work with Pillow.
Installing Pillow 2.4 (pip install -I pillow) simply results in "OPENJPEG (JPEG2000) support not available".
Thus, it is needed to compile the openjpeg library 2.0 from source. For this, first lets download the openjpeg 2.0.1:
Please note that we install version of openjpeg 2.0, rather than newer 2.1. Pillow wont recognize openjpeg 2.1 either.
Assuming everything went fine, we can reinstall Pillow:
If openjpeg 2.0.1 was detected successfully, we should get the following info "OPENJPEG (JPEG2000) support available" among others.
NOTE: to install cmake, cmake-2.8.10.2.tar.gz
wget http://www.cmake.org/cmake/resources/software.html
Installing Pillow 2.4 (pip install -I pillow) simply results in "OPENJPEG (JPEG2000) support not available".
Thus, it is needed to compile the openjpeg library 2.0 from source. For this, first lets download the openjpeg 2.0.1:
http://downloads.sourceforge.net/project/openjpeg.mirror/2.0.1/openjpeg-2.0.1.tar.gz tar xzvf openjpeg-2.0.1.tar.gz cd openjpeg-2.0.1/ cmake . make sudo make install
Please note that we install version of openjpeg 2.0, rather than newer 2.1. Pillow wont recognize openjpeg 2.1 either.
Assuming everything went fine, we can reinstall Pillow:
pip install -I pillow
If openjpeg 2.0.1 was detected successfully, we should get the following info "OPENJPEG (JPEG2000) support available" among others.
NOTE: to install cmake, cmake-2.8.10.2.tar.gz
wget http://www.cmake.org/cmake/resources/software.html
相关文章推荐
- Ubuntu14.04+Python3.4+apache2.4+Django1.7站点发布笔记
- how to deal with the situation that the language support option disappears in linux ubuntu
- Install opencv-2.4.7 in Ubuntu 11.10 with Qt support
- Ubuntu14.04 64位+Python3.4环境下安装opencv3.0的方法
- This version does not support documents saved in the Xcode 8 format. Open this document with Xcode 8
- ubuntu /usr/bin/do-release-upgrade crashed with SystemError in open(): E:Encountered a section with
- Install opencv-2.4.7 in Ubuntu 11.10 with Qt support
- This version does not support documents saved in the Xcode 8 format. Open this document with Xcode 8
- ubuntu14.04LTS下编译安装Open Babel和python语言绑定
- Ubuntu16.04下编译vim with python support失败的原因
- Install opencv-2.4.7 in Ubuntu 11.10 with Qt support
- Python with MySql in Ubuntu
- Set up wxWidgets 3.0.1 on Ubuntu 14.04 with OpenGL support
- This version does not support documents saved in the Xcode 8 format. Open this document with Xcode 8
- Install opencv-2.4.7 in Ubuntu 11.10 with Qt support
- Install opencv-2.4.7 in Ubuntu 11.10 with Qt support
- 在ubuntu 14.04 64bit下配置安装PyQt4(python2.7和python3.4)
- zz, trends with the support by Nation in Telecom fields
- ubuntu 14.04安装右键打开终端open in terminal