I am trying to display a .jpg image using Python.
I have tried this:
import image
image=image.open(C:\Users\Me\Desktop\image.jpg)
image.show()
I thought typing the path in the () will import the image. Where must I save the image for this to work or what must I write to be able to import an image from anywhere(for example the desktop)
image, do you meanPIL.Image? In any case after that you assign the opened picture toimage, which is bad because you have lost your imported module namedimage(while in this case it'll still work, you shouldn't do that). Last, your path needs to be given in quotes"path\to\file.jpg".