O'Reilly logo

Adventures in Python by Craig Richardson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix-image

Installing PyGame

For the later adventures in the book you will need to install PyGame in order to run the programs. Instructions for installing PyGame are given here; just find the section for the operating system you are using and follow the steps.

Windows 8

If you are using Windows 8, follow these steps to install PyGame:

  1. Open a web browser (such as Internet Explorer, Chrome or Firefox).
  2. In the address bar, type pygame.org/download.shtml and press the Enter key.
  3. When the page loads, scroll down to the Windows section.
  4. Click on the pygame-1.9.1.win32-py2.7.msi link to begin downloading the file (see Figure A-1).
    image

    FIGURE A-1 Installing PyGame on Windows 8

  5. Wait for the download to complete and then open the file.
  6. When the installer is open, leave the default choice to Install for all users and click Next.
  7. Click Next again.
  8. If you are asked if you want to allow the program to make changes to your computer, click Yes.
  9. Wait for the installer to complete then click Finish. PyGame is now ready to be used (see Figure A-2).
image

FIGURE A-2 PyGame ready to be used on Windows 8

Windows 7

To install PyGame on Windows 7, follow these steps:

  1. Open a web browser (such as Internet Explorer, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required