Skip to main content

macintosh — wiki

Current Instructions

Create and add the following to ~/.bash_profile:
     # Homebrew binaries now take precedence over Apple defaults
     export PATH=/usr/local/bin:$PATH

Install Apple Xcode command line tools:
xcode-select --install

Install XQuartz: http://xquartz.macosforge.org/landing/

Install homebrew:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

Install Python3 "proper" and packages we’ll need for installing PyGame from bitbucket:
brew install python3 hg sdl sdl_image sdl_mixer sdl_ttf portmidi

Install PyGame:
pip3 install hg+http://bitbucket.org/pygame/pygame

Restart the Mac for XQuartz changes

Old Instructions

(UPDATED) How to install pygame for Mac os Sierra Python 2.7(UPDATED)