problem at installing phyton on windows

Stephen Eilert spedrosa at gmail.com
Sun Mar 25 17:50:32 EDT 2007


On Mar 25, 6:23 pm, "gslm" <slm_gu... at hotmail.com> wrote:
> Please, can you read again?
> Yes, I understand that in phyton interpreter, i can't call phyton
> command.Thanks...
>
> But how can i run '.py' files from this command line?I wanted to use
> the phyton command for this.
>
> When i click a py extended file, for example calendar.py in lib
> directory, file opens, then suddenly close,except graphical ones.Why?
> How can i see the results?
>
> And where can i learn which library must i import for whic class?
>
> Sorry, i ask much:(But after learning these starting knowledeges, i
> read tutorials, manuals etc.
> But now i haven't found my answers yet.
> Regards...

For god's sake. It's PYTHON, not PHYTON.

Use IDLE and run your files from there. That way you won't have to
mess with the hideous windows console.

However, if you really want to use the windows console, keep in mind
that it will always close automatically when the program ends. That is
true for Python, C, whatever, unless it was open before. So, Start-
>run, type "cmd" then run python filename.py. If that does not work,
it's because the path is not set correctly.

And that's probably because you keep mispelling Python. See below:

" But I'm sorry.I haven't understood what i must do for ruunnig phyton
command.I delete path from proportiesof my computer.Then i open
command line of phyton.But when i write phyton these view below:
Traceback<most recent call last>:
File "<stdin>"; line 1 in <module>
NameError: name phyton is not defined "
                ^^^^^^^

Obviously, "Phyton" will never be defined.


Stephen







More information about the Python-list mailing list