r/pythonhelp • • Jul 14 '21

Why is my pygame getting errors

This is my program, for now it is meant to show a blank display yet it runs into errors, anyone know whats wrong:

2 Upvotes

2 comments sorted by

2

u/MrPhungx Jul 14 '21

Your file that you execute is called pygame.py. You need to rename that file. Else import pygame will import itself and not the package pygame that you probably installed with pip.

1

u/[deleted] Jul 14 '21

Cheers mate, it works!