"SyntaxError: invalid syntax. Perhaps you forgot a comma?"

I am trying to install Pillow to add images to a Tkinter GUI. Here I am attempting to install and upgrade pip to then install PIL. However, on my Windows computer all I’m getting is this error message. What is going on? Can anyone help to figure out how to upload images to a GUI, if there’s an alternative?

>>> python -m pip install -U pip
  File "<stdin>", line 1
    python -m pip install -U pip
           ^^^^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
>>>

Source: Windows Questions

5 thoughts on - "SyntaxError: invalid syntax. Perhaps you forgot a comma?"

LEAVE A COMMENT