Installing Python
For this class, the computers in the lab (Olin 326) should have Python and all the libraries installed for you to do the projects.
However, if you want to work on the projects at home,
you need to install both Python and the turtle and graphics libraries which go with the book in your own computer.
We will use these two libraries in later projects. At the start of the course, if you want to,
you can follow these steps and install Python first:
- First go to the Download Python site and get the version of Python for your particular computer operating system. Be sure, however, to get Python 3, not Python 2. Currently, the version you would get is Python 3.5.1.
- Save the following two files in some convenient location on your computer:
cTurtle.py
and cImage.py
.
- Now move these two files to the appropriate folder for your operating system:
- On the Mac: in
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages
- In Windows: in
C:\Python34\Lib\site-packages
- In Linux: in
/usr/lib/python3/dist-packages
Test this out by running Python and trying to load the Turtle library by typing import cTurtle
at the command prompt.
If you have questions, ask Louis, professor Hailperin, or professor Lofaro.