Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Python 2.2.1

0 views
Skip to first unread message

Dave

unread,
Jun 13, 2002, 4:58:58 PM6/13/02
to
    Hi, I am 12 years old and would like to begin learning Python over the summer. I have Windows 98 SE. I have python 2.2.1 and all of its utilities on my computer. I am taking a tutorial from  http://softwaredev.earthweb.com/sdopen/article/0,,12382_626311,00.html  If you go to it and scroll down to the paragraph entitled Getting Started there is a paragraph that says, "You will need to cause the directory containing the file named python.exe to be listed in your system environment variable named path. If you already know how to set the path, go ahead and do it.  If you don't already know how, you may need to get some help."
 
 
    How do I set the path and what should the name of the path be? All help and information would be appreciated. Thanks.:)

Bob X

unread,
Jun 13, 2002, 5:35:03 PM6/13/02
to
If you go to www.activestate.com and get the ActivePython setup it will
do it all for you. : )

Dave wrote:
> Hi, I am 12 years old and would like to begin learning Python over
> the summer. I have Windows 98 SE. I have python 2.2.1 and all of its
> utilities on my computer. I am taking a tutorial
> from http://softwaredev.earthweb.com/sdopen/article/0,,12382_626311,00.html

> If you go to it and scroll down to the paragraph entitled *Getting
> Started* there is a paragraph that says, *"You will need to cause the

> directory containing the file named python.exe to be listed in your
> system environment variable named path. If you already know how to set
> the path, go ahead and do it. If you don't already know how, you may

> need to get some help." *
> **

Irmen de Jong

unread,
Jun 13, 2002, 6:07:14 PM6/13/02
to
Dave wrote:
> Hi, I am 12 years old and would like to begin learning Python over
> the summer.

Wow! Talking about good idea's to spend your free time in the summer ;-)
Good luck and I think you will enjoy learning Python.

> How do I set the path and what should the name of the path be? All
> help and information would be appreciated. Thanks.:)

You could install ActivePython (as the other reply pointed out). That's
probably the easiest solution. It also comes with the PythonWin
GUI development environment, which saves you from typing a lot at
the command prompt.


If you really want to know... look around a bit for "PATH environment
variable", "c:\autoexec.bat" and "windows 98".
Maybe it's even in the Win98 help (just press F1)?

Irmen

Carl Caulkett

unread,
Jun 13, 2002, 6:16:51 PM6/13/02
to
On Thu, 13 Jun 2002 20:58:58 GMT, "Dave" <talb...@starband.net>
wrote:

> Hi, I am 12 years old and would like to begin learning Python over the summer. I have Windows 98 SE. I have python 2.2.1 and all of its utilities on my computer. I am taking a tutorial from http://softwaredev.earthweb.com/sdopen/article/0,,12382_626311,00.html If you go to it and scroll down to the paragraph entitled Getting Started there is a paragraph that says, "You will need to cause the directory containing the file named python.exe to be listed in your system environment variable named path. If you already know how to set the path, go ahead and do it. If you don't already know how, you may need to get some help."
>
>
> How do I set the path and what should the name of the path be? All help and information would be appreciated. Thanks.:)

Hi Dave,

Step 1 ... First of all you need to make a note of where Python is
installed. If you used the default settings, I would think that it
will be in C:\Python22 or something similar. The file python.exe
should be in a sub-folder called "bin" underneath the C:\Python22
folder. So here you would note down C:\Python22\bin.

Step 2 ... (*** VERY IMPORTANT ***) The next step is to make a backup
of your autoexec.bat file (this will be in the root of your C: drive.
Just use Windows Explorer to make a copy of it.

Step 3 ... Then you will need to edit autoexec.bat by opening it in
Notepad. Find the line which says something like PATH
C:\WINDOWS;C:\WINDOWS\COMMAND. You then need to add the folder name
that you noted in step 1 to the end of this line. If the line already
ends with a ; character, then just add the folder name straight after.
If there is no ; then you need to add one to the end of the existing
path entry before adding the new folder name.

Step 4 ... Save the edited autoexec.bat and close Notepad.

Step 5 ... Reboot the machine.

Step 6 ... Once the PC has rebooted, you can check that the path
change is correct by doing Strat -> Run -> "command". This will bring
up a DOS prompt. Just type in the word PATH and <enter>. You should
see a line that shows your newly added Python folder at the end. Type
EXIT and <enter> to leave the DOS prompt. That's it - you should be
ready for Python now.

By the way, well done for choosing Python. It's a remarkable language
that will help you learn some good programming skills. Just as
importantly, it's great fun because you can start to see useful
results very quickly, which is a great way of motivating you to learn
even more. Good luck <g>.

P.S. You might want to check your newsgroup settings and see if you
can switch on the wordwrap option. Your message came through as one
continuous line.

--
Cheers,
Carl

Keith Woeltje

unread,
Jun 13, 2002, 7:59:53 PM6/13/02
to
Dave,
I concur with the above--good choice in language. If you get frustrated
with that particular tutorial (it didn't look that great on first
glance), be sure to look at all of the resources on the Python web site at:
http://www.python.org/doc/Newbies.html

In particular, if you are new to programming, you owe it to yourself to
check out Alan Guald's site:
http://www.freenetpages.co.uk/hp/alan.gauld/
if you can spring for it, the print version is an excellent starting
point (I'm fond of real books personally).

Best of luck.
>K

Dave wrote:
> Hi, I am 12 years old and would like to begin learning Python over
> the summer. I have Windows 98 SE. I have python 2.2.1 and all of its
> utilities on my computer. I am taking a tutorial
> from http://softwaredev.earthweb.com/sdopen/article/0,,12382_626311,00.html

> If you go to it and scroll down to the paragraph entitled *Getting
> Started* there is a paragraph that says, *"You will need to cause the

> directory containing the file named python.exe to be listed in your
> system environment variable named path. If you already know how to set
> the path, go ahead and do it. If you don't already know how, you may

> need to get some help." *
> **

Dean Goodmanson

unread,
Jun 14, 2002, 3:20:30 AM6/14/02
to
> How do I set the path and what should the name of the path be? All
> help and information would be appreciated. Thanks.:)
> --

Windows 9X -> Millenium get increasingly harder to setup environment
details.

a. Autoexec.bat MAY work for you.

b. Typign MSCONFIG from your RUN menu (Start~Run, or Windows key+R)
will bring you to an environment configuratin screen.

c. These don't necesarily apply to the "DOS Mode" settings, which may
require you setting up another autoexec.bat.

d. The suggestions for using PythonWin are most appropriate.

After rebuilding (for me this is re-installing OS+Formatting, not
simply reinstalling.) my PC and not installing it, I missed PythonWIN.
(But for a personal perspective training reason I want to use the
default tools, plus run PythonCard with fewer "environment" variables.
(Did you see the plug for PythonCard? If not here's a few more:
Python-Tutor mailing list. Useless Python web site. Google those.))
PythonWIN includes the doc's in Windows Style help. I find those a
handy in ways but prefer local HTML help files. PyDoc is also handy(
http://www.onlamp.com/pub/a/python/2001/04/18/pydoc.html ).

How's that for vague cues? I have Windows ME on my home laptop. Too
cheap to buy XP or take the time to install Linux and train myself and
wife.

Your question is most valid. I searched the Windows help, google,
microsoft.com, and finally got the answer from a friend trying to find
why my autoexec.bat changes didn't take affect, and the diamond in the
rough: MSCONFIG.

-Dean

Duncan Booth

unread,
Jun 14, 2002, 4:34:21 AM6/14/02
to
"Dave" <talb...@starband.net> wrote in
news:II7O8.622$e27.27...@twister1.starband.net:

> Hi, I am 12 years old and would like to begin learning Python over the
> summer. I have Windows 98 SE. I have python 2.2.1 and all of its
> utilities on my computer. I am taking a tutorial from
> http://softwaredev.earthweb.com/sdopen/article/0,,12382_626311,00.html

This isn't related to your question (there seem to be plenty of answers to
that already), but if you are teaching yourself Python you might also want
to look at http://www.livewires.org.uk/python/

They have a Python course using a set of worksheets which start off simple
but include writing Asteroids and Pacman games.

--
Duncan Booth dun...@rcp.co.uk
int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3"
"\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?

Peter Hansen

unread,
Jun 17, 2002, 8:45:02 PM6/17/02
to
> Dave wrote:
>
> Hi, I am 12 years old and would like to begin learning Python
> over the summer.

Hi Dave! I sure wish I'd discovered Python when I was
twelve... of course, it didn't exist yet. :-(

Other replies have already covered the core question, so I'll
add two off-topic comments.

1. Please try to turn off "HTML" mode when posting messages here.
The messages are mirrored to the ASCII-based Usenet newsgroup
comp.lang.python (in case you're using the mailing list) and
non-ASCII messages are a problem for many readers. In Outlook you
can do this under the menu Tools -> Options -> Mail Format.

2. Please reply to let people know you've succeeded in following
their advice. The payback for all the folks who spend their
time replying to questions comes when they know their efforts
paid off for the original poster!

Good luck, :-)

-Peter

0 new messages