SOURCE http://zhidao.baidu.com/question/1510889184474081700.html?qq-pf-to=pcqq.c2c
Run python under Windows cmd, need to set environment variables, no environment variables can not run Python under CMD, now assume that Python is installed in the C:\Python25 directory, set the environment variable method as follows:
Method One, my computer----high-level environment variables, such as the system variable, find path in the system variable, double-click Path, at the end add "; C:\Python25 "(no quotation marks)
Method Two, the shortcut key (win+r) enter "cmd" in "Run" and then enter set path=%path% at the command prompt; C:\Python25, Next, enter Python under current cmd to run.
How to run the Python shortcut key (win+r) with cmd and enter "cmd" in "Run" and enter set path=%path% at the command prompt; C:\Python25, Next, enter Python under current cmd to run. ———. Use the Direct folder shift right