Time for action – installing Pygame

We will install Pygame in this section. Pygame should be compatible with all Python versions. At the time of writing, there were some incompatibility issues with Python 3, but in all probability, these will be fixed soon.

  • Installing on Debian and Ubuntu: Pygame can be found in the Debian archives at https://packages.qa.debian.org/p/pygame.html.
  • Installing on Windows: From the Pygame website (http://www.pygame.org/download.shtml), download the appropriate binary installer for the Python version you are using.
  • Installing Pygame on the Mac: Binary Pygame packages for Mac OS X 10.3 and up can be found at http://www.pygame.org/download.shtml.
  • Installing from source: Pygame is using the distutils system for compiling and installing. To start installing Pygame with the default options, simply run the following command:
    $ python setup.py
    

    If you need more information about the available options, type the following:

    $ python setup.py help
    
  • To compile the code, you need a compiler for your operating system. Setting this up is beyond the scope of this book. More information about compiling Pygame on Windows can be found at http://pygame.org/wiki/CompileWindows. For more information about compiling Pygame on Mac OS X, refer to http://pygame.org/wiki/MacCompile.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset