import PIL code example
Example 1: install PIL
pip install pillow
Example 2: PIL module not detected
pip install Pillow
Example 3: python install pil
# The new version of PIL is called Pillow, use that instead:
pip install pillow
Example 4: python pil
from PIL import Image
img = Image.open("./my_image.png")
Example 5: pil python image
from PIL import Image
im = Image.open("bride.jpg")
im.rotate(45).show()