Install Jpeg Module In Ubuntu
I am working on an image compression module, for that I want use jpeg library, but when I am importing it I am getting the following error. '' import jpeg Traceback (most recent ca
Solution 1:
I believe it's recommended to use the Python Imaging Library as the jpeg module is deprecated since python 3.0. So the module you need to import:
import Image
If you still get an import error then try:
sudo apt-get install python-imaging
Documentation can be found here: http://effbot.org/imagingbook/introduction.htm and there are some jpeg examples on that page.
Solution 2:
I believe the problem is that you're trying to use the jpeg
module in an unsupported platform. According to the documentation it's only supported in IRIX, so if you try to import it in a different platform, then you'll get the ImportError
exception.
Post a Comment for "Install Jpeg Module In Ubuntu"