[Tutor] getting python 3 to run from the command line (version 2)

Khalid Al-Ghamdi emailkgnow at gmail.com
Sat Nov 14 17:54:49 CET 2009


hi all,

I realize my question was previous question was phrased, well, vaguely, as I
learn from your responses so here's version 2 of my question:

i'm running windows vista and have python 30 ,31 and 26 installed.!

when I try to run python form the command line by printing *python *to
whichever path i have there (in my case:C:\users\KE>) it runs python 30, but
when i try to code something it just gives me a new line without any
processing of the code. (for example:2+2 returns a new line)

when I tried to change the path to the directory that contains python 31 and
enter *python (c:\python31>)*,  it just crashes and gives me the following
message:


*fatal python error: Py_Initialize: can't initialize sys standard streams
> *

*LookupError: unknown encoding: cp720*
*
*
*This application has requested the Runtime to terminate it in an unusual
way. *
*Please contact teh application's support team for more Information.*
*
*
When i change the directory to c:\python26 and then enter it works ok.

so can anyone tell me why this is happening?

PS: I learn from Alan Gauld's response that windows defaults to python30
when i enter python because in the system variables python30 was entered
first and I confirmed that that was true, but still python 30 doesn't
process my code and python 31 crashes.

thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20091114/3584f25f/attachment-0001.htm>


More information about the Tutor mailing list