Here is a quick tutorial on how to get Pygame up and running with Python 3 on a Mac with OS X 10.6.
- Download Pygame For Pycharm Mac
- Python Pygame Download
- Pip Install Pygame Mac
- Pygame Download Mac Os X
- Pygame For Python 3.6
Pygame (the library) is a Free and Open Source python programming language library for making multimedia applications like games. Pygame.org (the website) welcomes all Python game, art, music, sound, video and multimedia projects. Once you have finished getting started you could add a new project or learn about pygame by reading the docs.
![Pygame Download For Mac Pygame Download For Mac](/uploads/1/2/6/5/126570553/610606551.jpg)
Rationale
- Pygame 1.9.4 has been released into the wilds! TLDR; Some highlights. Python 3.7 support. Beta pypy support. See Are we pypy yet? Pygame.draw fixes; pygame.math is not experimental anymore. Speedups and bugfixes. Debian, Mac homebrew, mac virtualenv, manylinux and other platform fixes.
- In the official site of the pygame, pygame.org there is no supported version of the pygame for the python3. While I need my pygame to be written in the python3, I make a search in the site, and on the web, but nothing found. The only tutorial for installing the pygame for python3 in Mac OS X was that site.
The Pygame download site 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 XCode, 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 download XCode for free in Apple's App Store.
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 Homebrew, and so should you. In the Finder, go to Applications -> Utilities and start the Terminal. To install Homebrew, type
and hit Return.
Install Python 3
Homebrew has a recipe for Python 3, which we are going to use. Type
and hit Return. Once that is done, verify the Python version by typing
Install Pygame
The following is taken from a Pygame Issue Tracker thread.
![Pygame Download For Mac Pygame Download For Mac](/uploads/1/2/6/5/126570553/926580121.jpg)
First install the Mercurial version control system:
Then do the same for the git version control system, which is needed by a dependency package:
Download Pygame For Pycharm Mac
Now install all the dependencies of Pygame:
Python Pygame Download
Almost there! To install Pygame now, we will use pip. Go and get it by running:
Pip Install Pygame Mac
And now, finally:
Pygame Download Mac Os X
After this is done, verify that it is working:
Pygame For Python 3.6
That's it! Now you have Pygame for Python 3 installed and working and can start hacking.