Installing Python and Wing 101 for CS51A
For this class, we'll be using Python (version 3.7) and the Wing 101 IDE. These are both installed on the machines in the CS labs (Edmunds 105, 219, 227 and 229), which you have access to. If you want to use your own computer, you'll need to install these two programs.
Make sure to first install Python before installing Wing 101.
Mac
- Python 3.7.2 (make sure it's this version, or at least some 3.7 version)
Scroll down to the bottom of the page under "Files" and use one of the two Mac OS X Installers. To figure out which version of Mac OS X you have, go to the "Apple" menu and select "About This Mac".
- Wing IDE 101 (make sure you're installing the 101 version and not the trial version of the full application)
- Install the software.
- Open up Wing IDE.
- In the "python shell" it should say 3.7.2 as the version of python. If it does, you're all set. If it doesn't (i.e. it says something like 2.7.x, where 'x' is some number), then you need to update the python version in Wing (see the next step).
- Update python version in Wing (only if it's not already correct)
- Select "Edit--Configure-Python..." from the menus
- Select "Custom"
- and in the box immediately beneath that button type "python3"
- Select "OK" and restart Wing
Windows
These are for Windows 7, but these should be similar for other versions of Windows.
- Python 3.7.2 (make sure it's this version, or at least some 3.7 version)
- Use one of the Windows x86-* executable installers. It will probably be the "-64" version, but you can check if your computer is 32 bit or 64 bit by following the instructions here.
- Tell your computer where python is installed:
- From the start menu, right click on 'computer'
- Select 'properties'
- On the left, click on 'advanced system settings'
- Toward the bottom, click on 'environment variables'
- Under 'system variables', find the Variable named "path" and click on it
- With the 'path' variable highlighted, click 'edit'
- add ';C:\Python37' to the end of the existing value (do not put in quotes)
Note: if you changed the installation directory, put the directory you used here
- hit 'ok' on all open windows to save your changes
- Wing IDE 101 (make sure you're installing the 101 version and not the trial version of the full application)
- Install the software.
- Open up Wing IDE.
- In the "python shell" it should say 3.7.2 as the version of python. If it does, you're all set. If it doesn't (i.e. it says something like 2.7.x, where 'x' is some number), then you need to update the python version in Wing (see the next step).
- Update python version in Wing (only if it's not already correct)
- Select "Edit--Configure-Python..." from the menus
- Select "Custom"
- and in the box immediately beneath that button type "python3"
- Select "OK" and restart Wing