Pygame mac os x

pygame mac os x

Now we can see if it works.
Now install all the dependencies of Pygame: brew install sdl sdl_image sdl_mixer sdl_ttf smpeg portmidi.
Additional details, i'm using homebrew-installed Python/pip, and I've set my path with /usr/local/bin before the system-installed Python.Now you have Pygame for Python 3 installed and working and can start hacking.This has been a bugbear of mine for sometime now.Today I finally nailed it, and I have Pygame running.Install Python 3, homebrew has a recipe for Python 3, which we are going to use.GCC.2.1 Compatible Apple llvm.0 (clang-600.0.54) on darwin.H (a particular X11 header, required by SDL) is not found, as XQuartz's /opt/X11/include directory has not been specified to search for headers.If no error is returned by Python, then you should now have a working installation of Pygame.Homebrew, and so the sixth and seventh books of moses pdf should you.Then pip install pygame and python -c 'import pygame'.TL;DR you need to set some environment variables before installing Pygame.Did find: /usr/local/lib mach-o, but wrong architecture, what actually got Pygame working, the environment variables (gcc flags) required to allow Pygame to correctly build fat binaries (for both 32bit and 64bit Python) are: export CC usr/bin/gcc' export cflags'-isysroot -I/opt/X11/include -arch i386 -arch x86_64' export ldflags'-arch.Here' what I did.Org 7) brew tap homebrew/headonly 8) brew install -head smpeg 9) brew install python (needed to install mercurial) 10) brew install mercurial 11) pip3 install and that's.I use a Mac.1) Install XCode and command line tools 2) Install Homebrew (ruby -e curl -fsSL 3) brew install Python3 4) brew install git 5) brew install sdl sdl_image sdl_mixer sdl_ttf portmidi 6) Install XQuartz - cosforge.
None of them worked.