Daily Archives: February 8, 2009

Very first steps in python

Hi, today I’d begun to write some code in python.

Currently there are two version: 2.6.1 and 3.0. Because I’m new I used 2.6.1 :)

Here are the basic steps to begin with

  1. Download and install python :) , http://www.python.org/download/
  2. To use python directly from the console you should add the python to your systems path, some think like:
    • In windows set PATH=PATH;c:\python
    • In linux export PATH=PATH:/python
  3. If everything is OK, you should be able to write pyhon in the command line and it should return this:
    pyhonconsole
  4. Now it is time to test some examples. Python’s site have a Beginner guide and some very simple examples
  5. You can test the examples directly in the python’s command line
  6. If you are plan to use eclipse here there is a good pluginĀ  http://begnu.wordpress.com/2007/09/26/pydev-python-eclipse/, also you may want to see http://begnu.wordpress.com/2007/09/26/pydev-python-eclipse/

Now just test the examples a see what happens :)

This is it for now. bye.

- Reni