Python and other packages
Here is some useful information about Python and related packages.
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
In each case, please check to make sure you download the right
package for your machine.
-
Python 2.5.1: the Python programming language.
-
Wing 101 IDE: the application we use to edit and run
Python programs.
-
Windows: windows
installer
-
Mac OS X:
- X11 (install it from 'Optional programs' on your Mac OS X install disc)
-
Wing
IDE 101 (Power PC) or Wing
IDE 101 (Intel)
-
Run Wing and look at the Python Shell: it should say
Python 2.5.1. If it does not, then run Terminal and copy
and paste the following (type your Mac account password
when it prompts you to do so):
cd /usr/bin
sudo -s
rm python
ln -s /Library/Frameworks/Python.framework/Versions/Current/bin/python python
exit
-
nose: this is a set of functions for automatically
testing your own programs.
We will not be using it in this course - but if you are interested in learning to autotest, you may want to play around with it.
- Windows:
-
Step 1: Install setuptools
(install the Python 2.5 version)
-
Step 2: Run DOS Command Prompt
-
Step 3: In DOS type:
path=%path%;newdir
(where newdir is replaced with the location
of the Python 2.5 scripts, which is probably something
like C:\Python25\Scripts)
-
Step 4: In DOS Type:
easy_install nose
- Mac OS X:
-
Step 1: Install setuptools
(install the Python 2.5 version)
-
Step 2: Open a terminal window
-
Step 3: type:
easy_install nose
|