Download and install Python softwareas used in teaching Computing at the University of Southampton. Here we provide the same version of Python as is provided by on the ISS work stations. You find the installation instructions below. Table of Contents Recommended method for MS Windows, OS X and LinuxDownload the free Enthought Canopy environment from https://www.enthought.com/downloads/ and install on your machine following instructions. You don't need to understand this when installing, but the tools provided through the free Canopy include a graphical user interface, IPython, numpy, scipy and matplotlib. Install Symbolic Python
Install py.test
Create an Enthought Canopy accountTo install a community package (or a canopy package), you need to create an Enthought Canopy account. Just having the account gives access to the Community packages. If you are a student at Southampton University, you can upgrade this account by obtaining an academic license, and this gives you access to the Canopy packages The canopy software may have taken you to the sign up page. If not, then the current URL for this seems to be https://enthought.com/accounts/register/ (25 April 2013), so you can go there directly. You need to provide your details, email address (we recommend you use the university email address here) and a password of your choice. Once you complete this, you will receive an email with a link you need to click to activate this subscription (this is to check that the provided email address is actually yours). Once activated, your canopy account gives you access to the packages labelled ''Community packages''. You will then be using Canopy Express (which is the free version of Canopy). If you care, you can request an academic license which gives you free usage of all the Canopy packages as well. We will not need them for the first year Python teaching. Installing py.test with easy_installThe py.test tool helps to run regression tests automatically.
Python on LinuxThere is the Enthought Canopy software available for Linux. However, you may prefer to install the required Python and Python module yourself as Python itself is usually already part of a Linux distribution and very simple to install. You will need the following programs and libararies:
On Debian Linux ('etch') and other Debian-based distributions (such as Ubuntu and Knoppix, for example), you would install these packages with the following command (as root): aptitude install python2.7 python2.7-numpy python2.7-scipy python2.7-matplotlib python-visual On Debian Linux 5.0 ('lenny'), use: aptitude install python python-numpy python-scipy python-matplotlib python-visual python-sympy The Debian package that provides py.test is called python-codespeak-lib, so run: aptitude install python-codespeak-lib to install py.test. On other distributions (SuSE, RedHat, Gentoo, ...) other commands may be necessary to install the required packages. Testing your installationWe have provided a number of test programs in this directory (which are applicable to all operating systems). You can download these program one after the other and run them on your machine to see whether the software is installed okay. (This is usually not necessary and may only be useful if you run into difficulties.) |
|