running python from cmd.exe

Dominic Rice dominic.rice at
Fri Jul 4 11:38:35 CEST 2008

Dominic Rice wrote:
> Miki wrote:
>> Hello,
>>> I can't seem to get python to run my scripts using the command: python
>>> <userscript>.py
>>> If I type python the interpreter runs as I sorted out the Path property,
>>> I'm afraid I don't know much about this kind of thing as I'm a science
>>> student who needs some Python not a programmer!
>> Can you be more specific about the error you get?
>> Say you have a script that contains one line:
>> print "Hello Python"
>> and you run
>> python
>> What is the error you get?
>> HTH,
>> -- 
>> Miki <miki.tebeka at>
> Sure, I get:
> can't open file <userscript>.py: [errorno 2]No such file or directory.
> Now if I've noticed that if I change directory to (for instance) 
> \Python25 where the script is the command runs fine.(?)

Oh I just noticed you specified, in that case just to clarify it 
would be can't open file [errorno 2]No such file or directory

More information about the Python-list mailing list