I have Python 2.7.14 installed and I am using windows 10, I have installed pip and installed pygame through the cmd prompt as instructed, however, when I try to run the code it tells me that there is no module named pygame. Can anyone help me with this?
Here is the code:
import pygame, sys
from pygame.locals import *
pygame.init()
screen = pygame.display.set_mode((640,480))
while 1:
for event in pygame.event.get():
if event. type == pygame.QUIT:
sys.exit()
screen.fill((255,255,255))
pygame.draw.circle(screen,(0,255,0),(100,150),20)
pygame.display.update()