Tengo un error generado por PIL cuando intento procesar imágenes jpg: Python Imaging Library (PIL) Decoder jpeg not available
.
¿Cómo arreglar este problema?
A PIL le falta libjpeg
la biblioteca.
Para instalarlo:
cd
a la carpeta desempaquetadacd ~/Downloads/jpeg-8c
./configurar hacer
sudo make install
Pero PIL todavía no puede encontrar la biblioteca. Ahora necesitas reinstalarlo:
sudo pip uninstall pil
)JPEG_ROOT = None
conJPEG_ROOT = libinclude("/usr/local")
También puedes instalarlo desde MacPorts . Tienen PIL para varias versiones de Python.
py-pil @1.1.7 (python, graphics)
Python Imaging Library
py24-pil @1.1.7 (python, graphics)
Python Imaging Library
py25-pil @1.1.7 (python, graphics)
Python Imaging Library
py26-pil @1.1.7 (python, graphics)
Python Imaging Library
py27-pil @1.1.7 (python, graphics)
Python Imaging Library
Consulte el sitio para saber cómo instalar MacPorts, luego simplemente escriba sudo port install py-pil
(o una de las otras versiones, como py27-pil
). Espere un momento y debería tener un PIL en funcionamiento, suponiendo que use la versión de Python para la que se instaló el PIL.
arthankamal