pip install pillow from PIL import Image # Open an image file image = Image.open('path/to/your/image.png') # Display the image image.show()