Hello World! Installation (First Edition)

PLEASE NOTE: These instructions are for the first edition of Hello World!, which is no longer available in print. Please visit Hello World! Second Edition for the revised edition.

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

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.

Back to top

Macintosh Installation Instructions (First Edition)

PLEASE NOTE: These instructions are for the first edition of Hello World!, which is no longer available in print. Please visit Hello World! Second Edition for the revised edition.

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 Leopard as well.

You can find it here:

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, please send us an email with your questions.