Anonymous

Workshops/Python for Beginners: Difference between revisions

From London Hackspace Wiki
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
'''Information for our introductory workshops on Python'''
'''Information for our introductory workshops on Python'''
=Things you will Need=
You will most definitely need a laptop or other computer that is capable of running pyglet and python. Windows, Linux or OSX is supported for this course.
==Setting up Your System==
There are 4 things you need:
* '''Python''' - Either the 2.5 or 2.6.6 vintage. [http://www.python.org/download/releases/2.6.6/ http://www.python.org/download/releases/2.6.6/]
* '''Pyglet''' - [http://www.pyglet.org/download.html http://www.pyglet.org/download.html]
* The course code. This will be refined and released closer to the time.
* '''A DECENT TEXT EDITOR''' - We can't stress this enough! No really!
===Windows===
You'll need a copy of Python. We recommend the 2.6.6 branch installer which comes as an MSI file. Simply double click to install. You can grab it from the [http://www.python.org/download/releases/2.6.6/ Python.org Releases page]. We can't use 2.7 yet because the Pyglet library doesn't run yet.
Next you'll need the installer for Pyglet. This comes as an MSI too and you can simply double click and install.
[http://notepad-plus-plus.org/ Notepad ++] is pretty much the best text editor on Windows
===OSX===
Python comes installed as standard but there are a few versions. You'll need to use the '''python2.5''' command in your terminal and make sure you install pyglet for the 2.5 python install. You can grab the OSX DMG from [http://www.pyglet.org/download.html the Pyglet page] and install it. It should work straight out of the box.
Under OSX, I find [http://www.barebones.com/products/textwrangler/ textwrangler] to be the best.
===Linux===
Who can say?! There are several versions of Python for Linux but Pyglet generally works with 2.5 and 2.6 as oppose to 2.7/3.0. Ubuntu may have an install candidate inside apt for pyglet.
Kate or gedit are fine text editors for python (I'm sure there are VI, emacs people out there too, but chances are you already know python anyways)
==Tickets==
==Tickets==


Anonymous user