Loading An Image In Python (error)
I want to load an image but I get an error-message. My code: from PIL import Image im = Image.open('D:\Python26\PYTHON-PROGRAMME\bild.jpg') im.show() I get this error: Traceback (
Solution 1:
You need to escape the backslashes:
im = Image.open("D:\\Python26\\PYTHON-PROGRAMME\\bild.jpg")
Post a Comment for "Loading An Image In Python (error)"