Trouble Installing Pygame on Mac OSX. Download and install the binary labeled pygame-1.9.1release-python.org-32bit-py2.7-macosx10.3.dmg on the pygame download. Trouble Installing Pygame on Mac OSX. Download and install the binary labeled pygame-1.9.1release-python.org-32bit-py2.7-macosx10.3.dmg on the pygame download page.
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 How to install pygame for Mac os Sierra Python 2.7(UPDATED).
I downloaded Python 2.7.10 and I wanted to install pygame. I downloaded the DMG from pygame's website (Version 1.9.1) and installed it. To test if pygame was installed properly, I opened IDLE and e. 2 Installing Pygame for Python 3 on Mac and Linux Pygame for Python 3.4 on mac The following steps can be very tricky. Do not try them alone. Instead, give these instructions to the Python programmer or IT.
Rationale The presently has packages for Python 2.4, 2.5, 2.6 and 2.7 for OS X, but none for Python 3 (3.2 to be precise). This is odd, as everyone is doing Python 3 development these days, don't you think? And there even is an installer for Python 3 on MS Windows. So, let's change that and get Pygame working with Python 3 under OS X. Prerequisites Make sure the thing in front of you is an Apple computer with an OS X operation system.
I my case it was a MacBook Pro with OS X 10.6.6 'Snow Leopard'. You will need, the Apple developer toolset. For OS X 10.6 'Snow Leopard', you will find it on the installation DVD under 'Optional Packages' or similar. For OS X 10.7 'Lion' you can. To learn about your computer's operating system version, click the apple symbol in the top left and select the first menu item 'About This Mac'. Get A Package Manager Next, get a decent package manager to be able to conveniently install dependencies. I used, and so should you.
In the Finder, go to Applications -> Utilities and start the Terminal. To, type /usr/bin/ruby -e '$(curl -fsSL and hit Return. Install Python 3 Homebrew has a recipe for Python 3, which we are going to use. Type brew install python3 and hit Return. Once that is done, verify the Python version by typing python3 --version Install Pygame The following is taken from a. First install the Mercurial version control system: brew install mercurial Then do the same for the git version control system, which is needed by a dependency package: brew install git Now install all the dependencies of Pygame: brew install sdl sdl_image sdl_mixer sdl_ttf smpeg portmidi Almost there!