Discuss Incredibly entry level question in the Python Programming forum on Dev Shed. Incredibly entry level question Python Programming forum discussing coding techniques, tips and tricks, and Zope related information. Python was designed from the ground up to be a completely object-oriented programming language.
Posts: 4
Time spent in forums: 1 h 7 m 41 sec
Reputation Power: 0
Incredibly entry level question
Hello,
I have started looking into pygame and python recently and really think I would like to give it a go, but am falling at the very first hurdle.
I have installed both python and pygame but when I type
"import pygame, sys" as instructed by a tutorial I am following I get a message telling me there is no such module.
The various versions and compatibility issues are ridiculously confusing for me (I know that doesn't bode well). I have tried installing an earlier python (2.7) but the error message in red still happens, although its much longer now.
Could it be something to do with my computer not looking in the right place for pygame?
I have noticed that upon installation a folder has been created called "developer" and pygame resides inside there, as opposed to the Python 2.7 folder.
Posts: 3,364
Time spent in forums: 1 Month 2 Weeks 3 Days 10 h 28 m 48 sec
Reputation Power: 383
You're trying to use a package that doesn't come with the standard python distribution. I don't consider that an "entry level" problem. OSX is Apple's unix?
Moving your pygame directory into the python library site packages directory might work. Hmm, I don't have a site packages directory. Never mind that.
You could modify your python path environment variable and start python something like this:
Posts: 4
Time spent in forums: 1 h 7 m 41 sec
Reputation Power: 0
Thats really weird then, because all the tutorials etc I have been looking at just start talking about using pygame/python like its no big deal at all. Not even mentioning that it's a pain in the *** to actually get to work.
I will give your method a go in a sec and see how I get on, thanks for the help.
Posts: 4
Time spent in forums: 1 h 7 m 41 sec
Reputation Power: 0
Bah, I am finding it hard to believe that they made the software this difficult to install. Are you sure theres no easy way to get python and pygame working together?