Pygame python 3.1 -
this question has answer here:
- cant find pygame module 1 answer
i need in pygame 3.1 watching new bostons tutorials , whenever put in
import pygame pygame.locals import *
receive traceback (most recent call last): file "c:\documents , settings\aidan\desktop\pygame.py", line 8, in import pygame file "c:\documents , settings\aidan\desktop\pygame.py", line 9, in pygame.locals import *
importerror: no module named locals
your problem script (or else imports) named pygame
. so, python can't find package same name.
just rename script else, my_game.py
.
Comments
Post a Comment