pypi pil code example Example 1: install PIL pip install pillow Example 2: python pil from PIL import Image img = Image.open("./my_image.png")