I am running in ubuntu and I can code in python, without problem. I have tried to install pygame and to do make it so, I did:

sudo apt-get instal python-pygame

When I go into the python IDLE and write:

import pygame

I get:

Traceback (most recent call last):
File "", line 1, in 
ImportError: No module named pygame

What can I do to solve this problem? I am forgetting something, or doing something wrong?
I just had this same problem!
I read this and while it works to do the sys.path.append thing, I decided to try and get it to work with out.
What I did was went to the Ubuntu Software center uninstalled the python IDLE i had installed and then installed the IDLE.
This seems confusing the way I said it so to clarify you want to download the IDLE that doesn't come with its own version of python, it'll then use the python that already comes with Ubuntu!
If this doesn't make since or doesn't help fix your problem let me know!
pygame not found