3 Answers
3

I know this thread is a little old, but thought I'd share my experience on this subject...

I'm using a 64-bit MacBook Pro running OS Mavericks and python 2.7.

Steps:

If you've installed a few different versions of pygame while trying to get the darn thing to import and work successfully, make sure you delete/uninstall all of these to get a fresh start. I did a simple search in the terminal to see where all of the various pygame folders where located:

In Terminal: sudo find / -iname "pygame"

The results show a list of all the pygame directories, these are the folders that you want to delete. Note, I created a new tab in terminal to do this so I can reference the directories from the search on the previous tab and easily copy each directory without having to do another search to remember where they are:

In Terminal: sudo rm -R -i path/pygame

Also note, you can take the -i out of the above code and it won't confirm the deletion of certain files, but BE REALLY CAREFUL when deleting full directories from the terminal.

Once your machine is clean of all previous pygame installations, make sure you have python 2.7 from python.org, NOT IDLE (default Mac Python Interpreter)! This is very important. I use PyCharm and it rocks! Also, choose the version that works on a 32-bit machine and 64-bit machine - this way you won't have issues with the pygame 32-bit installer on your 64-bit machine. I tried same installation process but with the 64-bit only python 2.7 installation and it didn't work. Link provided below:

Did you install python from python.org? Or use the one that came with OS X?

If you used the one supplied by Apple, you must download the one from python.org first, then install using that package. Or you can try the Lion-pygame package (the link is at the bottom of the Macintosh section of the download page), but it may be incompatible.

I downloaded the one from python.org , but I'm not sure which is set to default and I don't know how to change it. I also tried the Lion package, but I downloaded the other one first and don't know how to change which one gets called.
–
David MeyersJan 28 '13 at 2:47