r/pythonhelp • • Feb 17 '22

Problems Downloading Pygme

I've been trying to download Pygame for a while now. I've tried on three separate computers, and they've all given me the same error message, so I assume I'm doing something wrong. I have the latest version of python installed, and when I did so, I was sure to tick the little box labelled 'pip'. However, when I type 'pip install pygame' into the shell, it gives:

pip install pygame

SyntaxError: invalid syntax

The spoiler is there to indicate what's highlighted. This might be a pygame problem, rather than a python problem, but asking here can't help. So... what am I doing wrong? I've looked about, and no one seems to have the same problem as me, so it feels like I'm making some obvious mistake, but I'd appreciate any help y'alls can give

EDIT: I have since solved the problem. Thanks for all your help.

3 Upvotes

21 comments sorted by

View all comments

Show parent comments

1

u/MT1961 Feb 17 '22

Well, you know, I've been in IT for a long time. Listen, if that doesn't work, re-install the operating system ...

1

u/The_Gobinator Feb 17 '22

It worked

I would include some exclamation marks, but my keyboard's broken, and I ca't type the numbers one or two, or the exclamation mark or the quotation mark. I really appreciate your help.

Thanks.

1

u/MT1961 Feb 17 '22

No problem, it can be frustrating. Pass it along to the next guy that asks. In general, stuff gets cached when you load the editor or environment. So sometimes, you need to reload it.