Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm having an issue with the Pygame module. I run Python 3.2 and installed the respective Pygame file, but now when I try to import it in the IDLE, it gives me this error:

>>> import pygame
Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import pygame
  File "C:\Python32\lib\site-packages\pygame\", line 95, in <module>
    from pygame.base import *
ImportError: DLL load failed: %1 is not a valid Win32 application.

Any help will be appreciated.

share|improve this question
What exactly did you download? Did you use the EXE? If so, are you sure you took the right one, matching your system specifications etc.? – nathan Nov 3 '12 at 21:24

According to this question about the same error, the issue is likely that you have a 64-bit version of Python installed, and a 32-bit version of Pygame. I don't think Pygame has any 64-bit versions available, so to fix your problem you will have to download a 32-bit version of Python.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.