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