Reputation: 35
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
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