Python Pygame For Mac

  1. Pygame For Mac Python 3.7
  2. Python Pygame Download Mac

This has been a bugbear of mine for sometime now. I like using Python 3.x. I like teaching kids how to use Pygame. I use a Mac.Trying to get all three to play nicely with each other has been impossible for me up to now.


2d 747 pygame 730 arcade 701 game 375 puzzle 305 shooter 259 python 254 strategy 222 action 185 libraries 150 other 148 space 148 platformer 124 multiplayer 123 simple 120 rpg 114 applications 92 retro 88 gpl 82 3d 77 pyopengl 73 pyweek 71 snake 70 geometrian 68 library 64 gui 58 engine 57 physics 57 simulation 52 josmiley 45 ALL the tags!


I've trawled through web pages and blog posts that recommend all manner of ways in which you can install Pygame on a Mac for Python 3, I've tried numerous solutions on StackOverflow, and I've even tried angrily shouting at my computer and threatening to throw it out of my classroom window. None of them worked.

Today I finally nailed it, and I have Pygame running. Here' what I did.

  • Installed a version of python 3 from homebrew especifically for pygame use 4. Executed the following commands into the terminal: brew install mercurial, brew install sdl sdlimage sdlmixer sdlttf portmidi, brew tap homebrew/headonly (this command failed, but pygame still let me download it!
  • The official home of the Python Programming Language. While Javascript is not essential for this website, your interaction with the content will be limited.
  • Pygame (the library) is a Free and Open Source python programming language library for making multimedia applications like games. Pygame.org (the website) welcomes all Python game, art, music, sound, video and multimedia projects. Once you have finished getting started you could add a new project or learn about pygame by reading the docs.
  • FreeBSD - pygame is included in standard ports as py26-game (1.8.1) OpenBSD - pygame is included in standard ports (1.8.1) Macintosh These are packages for the python from python.org, not the apple provided python. These packages work with OSX 10.3.9 upwards. Pygame-1.9.1release-python.org-32bit-py2.7-macosx10.3.dmg 12MB.

And that's it. If you have any problems yourself or a better way then please let me know in the comments.


note: the smpeg install is failing for me at the moment, so I'll look into this a little more. Pygame seems to be working without it though.

Pygame For Mac Python 3.7



I had some brew doctor issues (around 20!), which might have been due to me trying to install Pygame from source earlier and therefore manually installing all the dependencies, which then conflicted with homebrew.

I deleted everything brew doctor suggested and overwrote all links as suggested. The brew install --HEAD smpeg suddenly worked (although that might have been because I was no longer behind a proxy). I then did a brew unlink jpeg and brew link --overwrite jpeg.

Python Pygame Download Mac

Everything is working perfectly for now. (Crosses fingers, touches wood and searches for a black cat to cross his path.)

 g.bluemountainbodywork.co © 2022