pip3 install pillow code example
Example 1: install PIL
pip install pillow
Example 2: pil python install
# The new version of PIL is called Pillow, use that instead:
pip install pillow
Example 3: python -m pip install Pillow
pip install Pillow