Installation

To get PIL, the first step is to install pip, which is a program that is used to download almost all Python modules. If you are using any Python version > 3.4, pip should come installed on your machine. If not, download get-pip.py, and run python get-pip.py from the command line.

Windows

You can download PIL for Python 3 at this link here: http://www.lfd.uci.edu/~gohlke/pythonlibs/ - scroll down to the pillow section (pillow is just the name for newer versions of PIL), and select either Pillow‑4.1.1‑cp35‑cp35m‑win32.whl or
Pillow‑4.1.1‑cp35‑cp35m‑win\_amd64.whl, depending on whether or not your version of Windows is 32-bit or 64-bit.

Once you've done this, navigate to the appropriate directory, and run pip install <file>, where <file> is the name of the file we downloaded above.

Mac

For mac, there's no need to download any .whl files - simply run:
pip3 install pillow from the command line.

Did it work?

To test if the installation was successful, open up the command line, and run

$ python3

>>import PIL

If this did not pull up a module error, then you should be good to go!

results matching ""

    No results matching ""