I have python 2.7.1 installed and I’m trying to install pygame (2.6) but when I try compiling a python program I get the following error:
ImportError: No module named pygame
Is there a way to fix this without having to install python 2.6
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Besides installing python 2.6, you have the option of installing another copy of
pygamecompiled to run with python 2.7.Since there isn’t one available at pygame website today, I think you’d have to compile it yourself, using the C source code and a C compiler. (Microsoft Visual Studio or MingW)
Short of compiling, you could use one of these binaries I just digged up from google. They seem to be experimental alpha-quality versions, so don’t blame anyone but yourself if things break.