YAMAZAKI1996
YAMAZAKI1996

Reputation: 35

No Module named pygame.locals

I tried to import the following with pygame installed :

import pygame, sys
from pygame.locals import *

and I get this error message :

Traceback (most recent call last):
     File "C:\Users\gx\Desktop\Library\p1\test.py", line 5, in <module>
          from pygame.locals import *
ImportError: No module named 'pygame.locals'

I had found similar problems but none seemed to really help. Please help. Thank you.

Upvotes: 0

Views: 3613

Answers (1)

user2961646
user2961646

Reputation:

Don't even bother importing pygame.locals, since you already have imported that by importing pygame. Also, take a look at the comment from @IfLoop.

Upvotes: 1

Related Questions