[Tutor] How do I get Dos to recognize python command?
kent37 at tds.net
Wed Jun 7 02:59:11 CEST 2006
Kermit Rose wrote:
> I followed the model in
> and saw following results.
> C:\DavidKaremera\June2006\SAS>python med.py
> 'python' is not recognized as an internal or external command,
> operable program or batch file.
> What do I do to make DOS recognize python as a command?
You have to add the Python directory (C:\Python24) to your PATH
environment variable. There are some directions here:
> The link http://hkn.eecs.berkeley.edu/~dyoo/python/idle_intro/index.html
> that you suggested
> shows information about the idle.
> I've used idle for development until now, but it has the annoyance
> that I must close it and reopen it in order for it to import the changed
> of the program.
I don't think you have to do that. If you open your file in an editing
window you can run from there with Run / Run Module (F5). If you are
importing into the shell window you can use Shell / Restart Shell to
clear any imports, or use reload(<module>) to get a fresh copy.
> Besides, I already have one default module saved, and it would seem
> complicated to have more than one.
I don't know what you mean by this, what is a default module?
PS thanks for losing the graphics...
More information about the Tutor