0

I'm restricted to sudo apt-get install and I need to install python-pil so the command should be sudo apt-get install python-pil,but here is the problem:

sudo apt-get install python-pil
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package python-pil is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'python-pil' has no installation candidate

How to resolve this?

mrgloom
  • 880
  • 5
  • 18
  • 29
  • And Ubuntu 12.04 is about to reach the end of its support. Consider upgrading while it's still time. –  Feb 09 '17 at 12:21
  • @CelticWarrior my question is restricted to apt-get install method of installation, not pip. – mrgloom Feb 09 '17 at 12:40
  • That's why I told you to read both the answers and comments. –  Feb 09 '17 at 12:41
  • @CelticWarrior this one? http://askubuntu.com/questions/156484/how-do-i-install-python-imaging-library-pil#comment456063_156520 – mrgloom Feb 09 '17 at 12:44
  • That's the one indeed :) –  Feb 09 '17 at 12:45

1 Answers1

1

Seems PIL is not supported, I have installed Pillow instead.

Pillow is the friendly PIL fork by Alex Clark and Contributors. PIL is the Python Imaging Library by Fredrik Lundh and Contributors.

So command should be:

sudo apt-get install python-pillow

mrgloom
  • 880
  • 5
  • 18
  • 29