import require image code example Example: import Image pip install pillow from PIL import Image, ImageDraw