[Tutor] Installing Python....Getting Started (fwd)

Danny Yoo dyoo at hkn.eecs.berkeley.edu
Sat Mar 12 00:38:40 CET 2005


[Forwarding to tutor at python.org.  When you are replying to a message,
please use your email's "Reply-to-All" feature so that your message
reaches both me and the mailing list.]


---------- Forwarded message ----------
Date: Fri, 11 Mar 2005 22:38:55 +0100
From: Jan Ekström <jannee at brikks.com>
To: Danny Yoo <dyoo at hkn.eecs.berkeley.edu>
Subject: Re: [Tutor] Installing Python....Getting Started

      Thank you for Your answer.
      I felt fresh air in my face.


      I got the instruction to start like this below....................


      What will we cover?
      How to start Python and what an error message looks like - just in
case...


For the next set of exercises I will assume you have a properly installed
version of Python on your computer. If not, go fetch the latest version from
the Python web site and follow the install instructions for your platform.

Now from a command prompt type python and the Python prompt should appear
looking something like this:

Python 2.3 (#46, Jul 29 2003, 18:54:32) [MSC v.1200 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
Alternatively you might find a shortcut to something called IDLE, or the
Python GUI, in your start menus. If you start IDLE instead of the command
line version you will get a similar prompt but in a window of its own and
with some pretty font colors! Danny Yoo has written a pretty good IDLE
Tutorial to get you started with IDLE and I recommend you pay it a visit if
you want to stick with it rather than the basic command prompt. It
duplicates some of the early material here but repetition of the basics is
no bad thing!

Jan





----- Original Message -----
From: "Danny Yoo" <dyoo at hkn.eecs.berkeley.edu>
To: "Jan Ekström" <jannee at brikks.com>
Cc: <tutor at python.org>
Sent: Friday, March 11, 2005 10:11 PM
Subject: Re: [Tutor] Installing Python




On Fri, 11 Mar 2005, [iso-8859-1] Jan Ekstrm wrote:

> I have tried to install Python 2.4 on two pc-s and get this error when I
> follow the instruction and type python at the comand window or Idle
> window. I am running Windows xp home edition. What am I doing wrong?
>>
> Here is the error.
> IDLE 1.1
> >>> python
>
> Traceback (most recent call last):
>   File "<pyshell#0>", line 1, in -toplevel-python
> NameError: name 'python' is not defined


Hi Jan,

If you see that message, you're actually ok, because you're already in
Python!  *grin*

When you see the '>>> ' prompt, you're in Python's system.  You're doing
fine.

By the way, you may find this tutorial helpful:

    http://hkn.eecs.berkeley.edu/~dyoo/python/idle_intro/index.html

It's a little outdated; one of these days, I will update the screenshots
and fix some of the menu commands.  (For example, "Run Script" moved over
into the "Run" menu, and is renamed to "Run Module".)


If you have more questions, please feel free to ask!





More information about the Tutor mailing list