I have installed python 2.6.6 and pygame 2.6 from here:
http://pygame.org/ftp/pygame-1.9.1.win32-py2.6.msi
However, when I try to run this simple program, I get a an error:
import pygame
pygame.init()
pygame.quit ()
The error says:
unresolved import:pygame
What could it be?
Edit:
When I am doing
import pygame
in C:\Python26\python.exe , the interpreter, it works ok.
So it is probably an Eclipse problem.
Anyone has an idea what to do?
Before
add the lines
if the path to
pygameisn’t shown, then you’ve don’t have thePYTHONPATHenvironment variable set correctly.