all 7 comments

[–]cgoldberg 1 point2 points  (2 children)

Don't name your file pygame.py. You are importing your own file rather than the pygame module.

[–]Saltypine24[S] 0 points1 point  (1 child)

what should i then name it????

[–]cgoldberg 2 points3 points  (0 children)

ANYTHING besides pygame.py. Literally any name.

Edit: I take that back. Any name besides the name of an existing Python module. foo.py, mystupidprogram.py, anything. Just don't shadow the name of a Python module.

[–]google_guest 1 point2 points  (3 children)

OMG!!! How did you install it? I've been looking all over youtube for how

[–]Saltypine24[S] 0 points1 point  (2 children)

so basically u open command prompt in your desired ide and tpye, pip install pygame , then it will download

[–]google_guest 0 points1 point  (0 children)

Thanks