Jump to content
xisto Community
Sign in to follow this  
thejode

Pygame Installation Help

Recommended Posts

This has been a HUGE issue of mine for a long time......Pygame never works on my computer!

 

I've downloaded the pygame installers, installed them, installed python IDLE, the rest of it.

 

Whenever I use the import pygame function, it returns the same error over and over again:

 

Traceback (most recent call last):  File "<pyshell#0>", line 1, in <module>	import pygameImportError: No module named pygame
Can someone please help me out?

 

Thanks

Share this post


Link to post
Share on other sites

What version of Python are you using? What OS are you running on? Windows? Linux? Mac? I've always found getting modules to work (on linux) frustrating as well, but the basic idea is you have to get the pygame module into a directory that Python can read (from it's search path), or add python's module directory to a search path. It sounds simple in theory, but to be honest, it never seems to be for me. Python's module files like pygame seem to be thrown randomly around the file system and it's left up to the user to find them. Some installer!

Maybe someone more experienced can help more, but for now try reading some of the stuff on this page, https://docs.python.org/2/install/index.html . It might give some insight on how to add directories to the search path.

Share this post


Link to post
Share on other sites

I think i had similar problems once on Ubuntu. I installed Active Python, then repeated the installation procedure but changed the paths to point to the Active Python installation and was successful.

Share this post


Link to post
Share on other sites

Which OS are you running ? Windows ? And which version of python you are running ? Also why not check the pygame docs i guess this problem may be reported by someone else already. Let me check it anyway.

Share this post


Link to post
Share on other sites

Which OS are you running ? Windows ? And which version of python you are running ? Also why not check the pygame docs i guess this problem may be reported by someone else already. Let me check it anyway.


I'm running Python 2.6.4 on Windows 32-bit. I have checked the pygame documents but I couldn't really find much of an answer. Just like @rob86 said, the pygame installer is a piece of garbage.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.