SonicFancy
SonicFancy

Reputation: 309

import error with pygame when running a sample game

I just begin study about pygame module and download a sample program. When I run the program, the py shell returns the following text.

File "C:\Python33\Lib\site-packages\pygame\__init__.py", line 95, in <module>

    from pygame.base import *

builtins.ImportError: DLL load failed: %1 not valid Win32...

Anyone help me solve this?

Upvotes: 0

Views: 106

Answers (1)

Tom Leese
Tom Leese

Reputation: 19679

I think this error usually means you don't have the correct version of the module for your architecture downloaded.

If your OS is 32-bit and you're using 32-bit python, you need 32-bit pygame; but if your OS is 64-bit and you're using 64-bit python you need 64-bit pygame.

64-bit versions can be found here.

Upvotes: 2

Related Questions