0

I installed pygame using pip, but when i try to import it, it gives me this error. What could be the possible problem ?

*update, i downloaded a 32 bit version of pygame, extract it to python directory\Lib\site-packages and it's working now

dens14345
  • 192
  • 1
  • 4
  • 17
  • 1
    see http://stackoverflow.com/questions/4676433/solving-dll-load-failed-1-is-not-a-valid-win32-application-for-pygame – LinkBerest Apr 14 '15 at 04:22

1 Answers1

2

This happens when the bits of python you are working and the package doesn't match. It seems you are working in a 64-bit python and you have installed 32-bit python pygame package. you can find the 64-bit pygame package here

Chiyaan Suraj
  • 1,021
  • 2
  • 13
  • 27