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:

Install homebrew:
ruby -e "$(curl -fsSL"

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+

Restart the Mac for XQuartz changes

Old Instructions

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