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

    Different versions of Mac OS X require different versions of Python and wxPython. Although you may have Python already installed, we recommend that you install the linked versions below.

    If you're using version 10.4 (Tiger) or later, please follow the steps below.
    If you're using version 10.3 (Panther), you will need to install Python 2.3 and wxPython 2.5. You can find detailed instructions and links on the PythonCard installation page below. You will also need to obtain the appropriate versions of pyGame and PyObjC, both of which can be found at http://pythonmac.org/packages/.

    10.4 and later: The instructions here will install Python 2.5 and all the modules you need to go with it. If one of our readers creates a Mac installer, we would gladly post it for the benefit of others.

    1. Download and run the Mac Python installer
    2. Run the Mac Numeric Installer (required by Pygame)
    3. Unzip and run the Mac Pygame Installer
    4. Run the Mac wxPython Installer
    5. Follow this link to install PythonCard. (Choose the correct version of Mac OS X, as described on the PythonCard page.)
    6. Download EasyGUI, and unzip it in /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/
    7. (optional) To install SPE, run the SPE Mac installer. Or, unzip this file (SPE source code) into the /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/ folder.
    8. Download the One Big Zip File of example code and extract to the location of your choice.
    If you have trouble, check for suggestions in the Author Forum . Or post a new message and someone will try to help you.