PIL / Pillow IOError: decodificador jpeg não disponível

Se você se deparar IOError: decoder jpeg not availableao tentar usar PIL ou Pillow, geralmente pode resolver isso desinstalando PIL / Pillow e depois instalando libjpeg-dev, finalmente reinstalando PIL / Pillow

Debian / Ubuntu

  1. pip uninstall Pillow ou pip uninstall PIL
  2. sudo apt-get install libjpeg-dev
  3. pip install Pillow

Redhat / CentOS

  1. pip uninstall Pillow ou pip uninstall PIL
  2. sudo yum install libjpeg-devel
  3. pip install Pillow