The full name of PIL is the Python image library. But it's not good to use. Strictly speaking, I have not been successful. Because there is always the same error (not a big difference). Even a JPEG image can not be displayed, this library for small white users is a bit of a misnomer. Because the small white user to the Linux package (library) The dependency problem is difficult oneself alone to solve independently. There is no way to use this library properly.
Here is Pillow's official website:
Http://pillow.readthedocs.io/en/3.0.x/index.html
It is perfectly possible to use pillow to replace PIL, without concern for the following errors:
Decoder JPEG not available
It's all kinds of mistakes anyway. Open a JPEG file also can not open, PNG seems to also not open.
Then using Apt-get install a lot of related (previously missing) libraries, still can not solve any problems.
So, finally I chose the pillow, gave up the PIL. This one-step demo passes.
Specific installation of pillow can refer to the official website.
I'm using Linux. Specific operating systems can be found on the official web-based instructions, very detailed.
Before installing, remove PiL manually or via the command line tool.
If you have already installed the pillow, you can unload the load. This will solve some inexplicable mistakes.
The perfect alternative to the Python image library PiL-pillow