Pygame Download For Mac
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 Windows & read reviews. Discover the multimedia app maker. Hey guys, in this video I explain how to download and install pygame on a mac osx computer. This is extremely simple and fast and should not take you more th.
Rationale
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.
First install the Mercurial version control system:
Then do the same for the git version control system, which is needed by a dependency package:
Now install all the dependencies of Pygame:
Almost there! To install Pygame now, we will use pip. Go and get it by running:
And now, finally:
After this is done, verify that it is working:
That's it! Now you have Pygame for Python 3 installed and working and can start hacking.
The only guide you need to learn how to install pygame using pip on Windows 10, Mac and Linux.Guide to installing pygame
The official pygame documentation recommends using pip for installation. Pip is a package management system that allows you to install and modify software packages written in python. Below I cover how to install pip on each operating system and then how to use pip for installing pygame.Note: python 3.6.1 or greater is recommended. You can get the relevant python installers from their website.Install pygame for Windows 10
The windows python installer gives you the option to install pip alongside python. The installer will look like below, make sure to tick the box that says “Add Python 3.x to PATH”. You can then proceed through the installation as normal as this will install pip by default.Once the python installation is finished, open a command prompt. Firstly, we need to update pip:We can then install pygame using pip:Install pygame for Mac
The Mac installation is a bit different from the others. Depending on which installer was used for python it may or may not have installed pip. We can check if pip is installed with the following:If this command gives a version number and directory then pip is installed and you can skip the below step. If you don’t have pip installed then follow the instructions below. Firstly, download get-pip.py:…and then run it:You can then update pip to the latest version using:And finally installing pygame:Please note where I have used “pip” in the above two commands if the command doesn’t work try replacing “pip” with “pip3”. So “sudo pip install pygame” would turn into “sudo pip3 install pygame”. Same with “python” and “python3”, so “python get-pip.py” would turn into “python3 get-pip.py”.Install pygame for Linux (Ubuntu-based)
The first step to the Linux installation is checking if pip is installed:If this command gives a version number and directory then pip is installed and you can skip the below step. If this command throws an error then you need to install pip:
You can then update pip:Finally, install pygame: