pip install numpy
brew install sdl sdl_ttf sdl_image sdl_mixer
Download the pygame source. It’s one of the top links. Extract it somewhere and go to that directory in a terminal.
Run python config.py.
Open "Setup" file that will be found after running the above command .
Change the lines starting SDL, FONT, IMAGE, and MIXER to read:
SDL = -I/usr/local/include/SDL -L/usr/local/lib -lSDL
FONT = -lSDL_ttf
IMAGE = -lSDL_image
MIXER = -lSDL_mixer
open and edit scale_mmx64.c from /src folder .
Look for all occurrences of movsxl and replace it with movslq.
You should find two occurrences.
Run python setup.py install. --- title: "Installing pygame in OSX Mavericks" date: 2014-01-24T13:55:21 author: Mithun category: tips tags: [mavericks, osx, homebrew, python, pygame] reading: ~1 min ---
# Installing pygame in OSX Mavericks
## reply
reply by email → mail@mithun.co
or copy the address: mail@mithun.co
// see also
- → init script for mongodb 4 on WS…
- → Serving Flask helloworld using…
- → Solution for gpg: skipped: " s…
- → Uninstalling torrent-time on Mac
// share