Hello World! Installation

These are downloads for the Hello World! installers and sample code.
  1. Useful Links
  2. Windows Instuctions
  3. Linux Instructions
  4. Macintosh Instructions

Back to Top

Useful links

  • Python web site
  • Pygame web site
  • PythonCard home page
  • EasyGui home page
  • SPE homepage
  • Python Mac downloads page
  • Hello World! source code download (one big zip file with everything)
  • Hello World! example files by chapter (individual files, organized by chapter)
  • Hello World! zip files by chapter (zip files, one for each chapter)

    Back to Top

    Windows Installation Instructions

    Simple method
    This method uses an installer made by our friend Sean.
    1. Download the Windows installer here.
    2. Run installer.
    3. Accept terms and select settings.
    4. Python, PythonCard, Easygui, Pygame, SPE and the sample programs will install.
    Advanced Method
    If you don't want to run the installer (for example, if you already have Python or some of the components installed), you can install individual pieces yourself. You need:
    1. Python (Version 2.5 is the one we use in the book.)
    2. Numeric (needed by pygame)
    3. Pygame
    4. wxPython (needed by PythonCard)
    5. PythonCard
    6. Easygui
    7. SPE (optional, but recommended)
    8. Download the One Big Zip File of example code and extract to the location of your choice.
    You can also run the Windows installer (from the Simple method) and select only certain items to be installed.

    Back to top

    Linux Installation Instructions

    We have installers for Debian and its children (Ubuntu, etc.) and Fedora. Just download the appropriate file for your version of Linux, unzip it, and run the "install.sh" script.

    First, you have to make sure the installer script is executable. So, run this command:

    chmod +x install.sh

    Then, you run the installer script.
    Important note: The installer script needs to be run as root. So you can either do this:

    sudo ./install.sh

    or this:

    su -c ./install.sh

    (It will ask you for your sudo or su password.)
    The ./ part is explicitly telling the Linux shell that "install.sh" is in the place where you are now. Some people get in the habit of putting ./ in front of local commands.

  • Ubuntu (Debian) installer
  • Fedora installer


    Back to top

    Macintosh Installation Instructions

    We now have an installer for MacOS X! It has been tested with OSX 10.4 ("Tiger") and 10.5 ("Leopard"). It should be fine on Snow Leopared as well.

    You can find it here:

  • Mac OSX installer

    However, it seems the PythonCard Resource Editor is broken for Mac OS X (at least for some people). But there is a fix! Here's how you fix it (after running the above installer):
    1. Go to Macintosh HD/Library/Frameworks/Python.framework/Versions/2.5/Lib/python2.5/site-packages/PythonCard
    2. Drag the file called "model.py" to the Trash.
    3. Download and unzip this file: model.py.zip . Drag model.py (that you just unzipped) into the PythonCard folder.
    4. In the PythonCard folder, go to tools/resourceEditor/.
    5. Control-click the file called resourceEditor.py and choose Make Alias.
    6. Rename the alias to "Resource Editor" (without the quotes)
    7. Drag the alias to somewhere you'll be able to find it later.
    8. When you're going through the book and you need to open Resource Editor, double-click the alias to open it in IDLE, then choose Run->Run Module in the menu

    Thanks to the folks at tjleone.com for that fix.

    If you have trouble, post a message in the Author Forum .