Hello World! Installation
These are downloads for the Hello World! installers and sample code.
- Useful Links
- Windows Instuctions
- Linux Instructions
- 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.
- Download the Windows installer here.
- Run installer.
- Accept terms and select settings.
- 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:
- Python (Version 2.5 is the one we use in the book.)
- Numeric (needed by pygame)
- Pygame
- wxPython (needed by PythonCard)
- PythonCard
- Easygui
- SPE (optional, but recommended)
- 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 topLinux 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 topMacintosh 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.
- Download and run the Mac Python installer
- Run the Mac Numeric Installer (required by Pygame)
- Unzip and run the Mac Pygame Installer
- Run the Mac wxPython Installer
- Follow this link to install PythonCard. (Choose the correct version of Mac OS X, as described on the PythonCard page.)
- Download EasyGUI, and unzip it in /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/
- (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.
- 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.