importing pillow in python code example Example: PIL image example >>> from PIL import Image >>> im = Image.open("image.jpg") >>> im.show()