Python
There is extensive Python documentation; you can use it online or click the first link to download the documentation to your own computer. (Please do not download it to your campus account; use the online version instead.)
What to Install
The course software is available in the computer labs, but you can also install the software on your own computer, so that you can work from home.
-
Mac OS X:
- Mac OS X Snow Leopard users: See the section below on Snow Leopard + media library
- Download, unzip, and install the U of T
First Year Developer Kit, which installs:
- Python 2.5.2
- Setuptools 0.6c8
- Nose 0.10.3
- Python Imaging Library 1.1.6
- Pygame 1.8.1
- NumPy 1.1.1
- PyGraphics 2.0 (Note: this is another name for the "media" module we've been talking about in class)
- Install X11 (from 'Optional programs' on your Mac OS X install disc)
- Download and install Wing 101 IDE:Wing IDE 101 (Power PC) or Wing IDE 101 (Intel)
-
Windows:
- Python 2.5.2: the Python programming language
- Most windows machines: python-2.5.2.msi
- 64-bit windows machines: python-2.5.2.ia64.msi (Win64-Itanium) or python-2.5.2.amd64.msi (Win64-AMD64)
- Wing 101 IDE
- Python Imaging Library (PIL)
- pygame
- numpy
- PyGraphics 2.0 (Note: this is another name for the "media" module we've been talking about in class)
- nose
- Step 1: Install setuptools
- Step 2: Run DOS Command Prompt (Start -> All Programs -> Accessories -> Command Prompt)
- Step 3: For this step to work, you must be connected
to the internet. In DOS, type:
C:\Python25\Scripts\easy_install nose
- Python 2.5.2: the Python programming language
- Linux
Important re Snow Leopard + media module
The module media.py, which we use in some lectures and labs to do image or sound manipulation, is not compatible with the new version of OS X, Snow Leopard. (This is because media.py depends on some other modules that we didn't write, and that have not been updated yet to be compatible with this very recent version of the operating system.) If you have installed Snow Leopard, you can use Wing to do everything other than use media.py. If you need to use media.py, you have two options: