Learning-paths are a work in progress. Most things seem to work, but certain browsers, Internet Explorer in particular, may see a few blips, particularly with the Flash-players. Any problems and please send some feedback here.

Setting up Python

start

You want to program with Python and need help setting it up

goals

You will have a working Python setup on Windows (notes for Linux and Mac included)

Obtaining Python

Depending on your platform your first task might be to get Python installed. On Windows you can download the installer from the python.org download page. Python does not normally come pre-installed on Windows machines (at least - Microsoft doesn't install it by default!).

Macs have Python built-in and most Linux installs also have it pre-installed.

There are several flavours of Python that you could install for Windows. Take a look at the following video to see the main ones. Generally I just suggest going to python.org and getting their installer and then building up your packages but, if you're doing science, the scipy.org ones are a good place to start (as everything's pre-installed for you).

Deciding on a Python 2.5 Distro

Deciding on a Python 2.5 Distro

Your first task is to pick the right Python distribution. At Python.org you can get the latest and greatest Python 2.5, with SciPy you get a math-oriented v2.5 and with ActivePython you get a complete but older v2.4 [edit March 2008 - ActivePython's distribution is now at Python 2.5 as well]. Watch the video to learn which is the right one for you. Here are the distros: Python.org SciPy ActiveP [...]

To test if you have it, open a command prompt and type 'python' - if it runs (on Mac/Linux) then you already have it. If you don't you'll have to look further afield - do leave a comment below if you find a useful tutorial and we can include the information here.

Installing Python

Python for Windows

This video will give you an idea of how to install Python if you're using the stock installer from python.org. The other packages (scipy's and ActiveState's) have Windows installer packages and they're easy to follow.

Running Python 2.5 on Windows XP

Running Python 2.5 on Windows XP

Here we install and test Python 2.5 from Python.org (download here). I cover how to start Python from the Start Menu and writing your first (Hello World) line of Python code. At the end of this video you'll know how to start and finish with Python and you'll be ready to check-out the on-line tutorial via the Python.org doc pages and Mark pilgrim's on-line book Dive Into Python. You will also be r [...]

If you installed Python using just the python.org installer (and possibly if you've used the other installers too) you will probably need to add python to the DOS path, this will show you how.

Adding Python to DOS Path

Adding Python to DOS Path

Python is not added to the DOS path by default. If you run 'python' from the command line you'll receive this error message: 'python' is not recognized as an internal or external command, operable program or batch file. Here I show you how to add ';c:\python25;c:\python25\scripts' to the System Path allowing Python to be executed from the command line for all users.

Python for Mac

Python has been installed on Macs for a while, if you open a command prompt and type 'python' you should get the shell without any further work.

Python for Linux

Most Linux distributions (e.g. Ubuntu, RedHat) come with python pre-installed. If you can't get 'python' to run at the command line you'll have to consult your documentation - generally it is a matter of finding a one-line installer that will set it all up for you.

Getting easy_install

You'll also want easy_install - it is a command-line tool that makes it really (really!) easy to install new Python packages. This video shows you how to set it up on Windows, you can follow similar steps to get it working on Macs and Linux too.

Installing easy_install with ez_setup.py

Installing easy_install with ez_setup.py

Here we install easy_install using ez_setup.py (linked on the easy_install page). easy_install lets you install many python packages using a 1-line install command - just like using apt-get or rpms on Linux. On Windows you might need to setup your DOS path - see Adding Python to DOS Path.

And Now...

To continue your education, take a look here:

Beginner Python Programming

How to read and write simply Python programs and running them

The RST-script for this Learning-path

The script below was used to generate the learning-path page above.

===========================================================
Setting up Python
===========================================================

.. authors::  71 79 3253 11 8 709        

.. contents::

start
=====
You want to program with Python and need help setting it up

goals
=====
You will have a working Python setup on Windows (notes for Linux and Mac included)

Obtaining Python
================

Depending on your platform your first task might be to get Python installed.  On Windows you can download the installer from the python.org `download <http://python.org/download/>`_ page.  Python does not normally come pre-installed on Windows machines (at least - Microsoft doesn't install it by default!).

Macs have Python built-in and most Linux installs also have it pre-installed.

There are several flavours of Python that you could install for Windows.  Take a look at the following video to see the main ones.  Generally I just suggest going to python.org and getting their installer and then building up your packages but, if you're doing science, the `scipy.org <http://scipy.org/>`_ ones are a good place to start (as everything's pre-installed for you).

.. video:: 136

To test if you have it, open a command prompt and type 'python' - if it runs (on Mac/Linux) then you already have it.  If you don't you'll have to look further afield - do leave a comment below if you find a useful tutorial and we can include the information here.

Installing Python
=================

Python for Windows
------------------

This video will give you an idea of how to install Python if you're using the stock installer from python.org.  The other packages (scipy's and ActiveState's) have Windows installer packages and they're easy to follow.
    
.. video:: 137

If you installed Python using just the python.org installer (and possibly if you've used the other installers too) you will probably need to add python to the DOS path, this will show you how.

.. video:: 294

Python for Mac
--------------

Python has been installed on Macs for a while, if you open a command prompt and type 'python' you should get the shell without any further work.

Python for Linux
----------------

Most Linux distributions (e.g. Ubuntu, RedHat) come with python pre-installed.  If you can't get 'python' to run at the command line you'll have to consult your documentation - generally it is a matter of finding a one-line installer that will set it all up for you.

Getting easy_install
====================

You'll also want easy_install - it is a command-line tool that makes it really (really!) easy to install new Python packages.  This video shows you how to set it up on Windows, you can follow similar steps to get it working on Macs and Linux too.

.. video:: 591

And Now...
==========

To continue your education, take a look here:

.. path:: 11

Thank-yous, questions and comments

If this video tutorial was helpful please take some time to say thank-you to the authors for their hard work. Feel free to ask questions. Let the author know why their video tutorial was useful - what are you learning about? Did the video tutorial save you time? Would you like to see more?

You may also want to see our ShowMeDo Google Group to speak to our active users and authors.

Your email address will not be published.

Show some quick comments >>








All comments excluding tick-boxed quick-comments

I can't read the flowchart. It's really small and the text cannot be read. Also, it seems like this site has a lot of great content but it's really cluttered and hard to follow!

And what does the checkbox next to this submit "you get my vote!" button???


I can't read the flowchart. It's really small and the text cannot be read. Also, it seems like this site has a lot of great content but it's really cluttered and hard to follow!

And what does the checkbox next to this submit "you get my vote!" button???


phew thanks man ....


nil


nil


nice tutorial


18. peacengell Tue, 24 Jan 2012 07:11

nice tutorials budy

thanks alot.


17. peacengell Tue, 24 Jan 2012 07:11

nice tutorials budy

thanks alot.


16. peacengell Tue, 24 Jan 2012 07:10

nice tutorials budy

thanks alot.


Thank you very much good tutorial


useful starting video, now looking forward to getting python running


The tutorials and resource are really useful and practical. They get my vote.

Thank you.


i want study with python computer scientist


10q


---- Please make more on this subject!.

---- *Really* useful, thanks!.


7. clueless at 13 Tue, 06 Apr 2010 16:33

i have no programming experience. HELP!


I wanna learn python guys how do I start.....Ill proceed.


5. Piyush madhamshettiwar Wed, 13 Jan 2010 17:14

Thank you very much for such a nice tutorial.


4. Piyush madhamshettiwar Wed, 13 Jan 2010 17:14

Thank you very much for such a nice tutorial.


thanks


Showmedo is a peer-produced video-tutorials and screencasts site for free and open-source software (FOSS)- with the exception of some club videos, the large majority are free to watch and download.

how to help » about » faq »

Educating the Open-source Community With Showmedo

Although as important as the software it supports, education and documentation are relatively neglected in the Open-source world. Coders love to code, and explaining how best to use or improve the software tends to be deferred or even sidelined.

At Showmedo we believe the community can play a vital role here and also say thanks for the tools and software that make our lives easier. If you have a piece of software you love or a programming langugage you are enthusiastic about, why not make a screencast showing others how to use it? All the stuff you wish you'd been told, the tips, tricks, insights that would have saved you time and frustration.

Screencasting is easier than you think, and we're happy to help you. You can emailus for advice or just use some of the how-to screencasts on the site. This screencasting learning-pathis a good place to start.

Follow Our Tweets
For site-news, video announces, info on building a web-site with Python, jQuery, javascript, CSS, Flash (ugh) and plain interesting FOSS news follow our tweets.
Follow Our Blog
For in-depth code analyses, new videos, news from the open-source frontier, Python, jQuery etc. hackery just follow our blog.
Content

Feedback

Showmedo's development is fairly rapid and bugs will inevitably creep in. If you have any problems please drop us a line using the contact address below. Likewise, any suggestions for improvements to the site are gratefully received.

feedback@showmedo.com