O'Reilly logo

NumPy Cookbook - Second Edition by Ivan Idris

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Installing PIL

PIL, the Python imaging library, is a prerequisite for the image processing recipes in this chapter. If you prefer, you can install Pillow, which is a fork of PIL. Some people prefer the Pillow API; however, we are not going to cover its installation in this book.

How to do it...

Let's see how to install PIL:

  • Installing PIL on Windows: Install PIL using the Windows executable from the PIL website at http://www.pythonware.com/products/pil/.
  • Installing on Debian or Ubuntu: On Debian or Ubuntu, install PIL using the following command:
    $ sudo apt-get install python-imaging
    
  • Installing with easy_install or pip: At the time of writing this book, it appears that the package managers of Red Hat, Fedora, and CentOS do not have direct support for ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required