<h2 align=center>Pygame Installation</h2>
Python can be built from source, but the easiest way is to
get a binary package for your type of system and version of Python.
This document will give you information on either type
<h2 align=center>Pygame Installation</h2>
Python can be built from source, but the easiest way is to
get a binary package for your type of system and version of Python.
This document will give you information on either type of installation.
<big><b><u>Windows Binary Installer</u></b></big><blockquote><p>
This is probably the most popular method of installation. If you are
running on windows, it is highly recommended you use this form
of installing. The installers come with with nearly everything
you need, and have an easy point and click installers.
The first thing you will need is an installation of Python. Python
binary installers make it easy to get this done. Pygame binaries
usually come for the latest 2 releases of Python, so you'll want to be fairly
up to date.
Once that is in place, you want to download the appropriate
windows binary. From the pygame downloads page you can find the.EXE
file you need. This will automatically install all of pygame and all the SDL
dependencies. The windows binaries have filenames like this; "pygame-1.7.1.win32-py2.4.exe".
This would be the installer for pygame version 1.7.1, for Python version 2.4. You
shouldn't have trouble finding the correct binary from the "Windows" section
of the download page.
You will also probably want to install the windows documentation and
installation package. This will add easy links to the different documentation
and games that come with pygame. The installer for this is found
next to the other windows binary downloads. The filename looks like this;
"pygame-docs-1.7.1.exe". And this would install the documentation and
examples for pygame-1.7.1
One other thing the windows binaries are missing is the Numeric Python
package. You can easily install this separately and it will allow you to use
the pygame "surfarray" module. This module is optional, so there is no need
to do this. There are binary installers from the Numeric download page.
<big><b><u>Unix Binary Packages</u></b></big><blockquote><p>
For many unix systems, the easiest way to install pygame is
from source. Still, there are binary packages available for
There are several binary RPM packages for linux machines. These are
actually a little bit of work to install, since you will also need several
RPM packages for the dependencies. There is a good chance
your linux distribution came with the needed dependencies (like Python
and SDL). There are binary RPMs available from the website for each dependency.
For debian systems, pygame is actively maintained in the debian
archives. Visit the debian pygame page 