Why does IDLE say
ModuleNotFoundError: No module named 'pygame'
when I have it installed? I installed it with pip. I tried deleting the import but then IDLE gives me a name error saying pygame isn't defined.. I tried doing
import pygame
and
import pgzrun
and
import pgzero
here's my code where its used:
import pygame
screen = pygame.display.set_mode((800, 600))
I also used a code editor called mu but then if I use functions, it gives me a name error.