pip install PIL code example
Example 1: how to install pil in anaconda
conda install -c anaconda pillow
Example 2: install PIL
pip install pillow
Example 3: pil python install
# The new version of PIL is called Pillow, use that instead:
pip install pillow