Pygame python 3.1 -


this question has answer here:

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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -