By default, the system does not automatically add the appropriate environment variables after you install Python under Windows. You cannot use the Python command directly at this time on the command line.
1. First you need to register the Python environment variable in the system: assuming that the Python installation path is c:\python2.5, open the "My Computer-> Properties-> Advanced-> environment variable-> system variable" appended to the value of path: "; c:\ Python25 "(Remember to add"; " Semicolon), separated from the previous value
Once the above environment variables are set successfully, you can use the Python command directly at the command line. Or execute Python *.py to run the Python script.
2. At this point, you can only run the Python script through "Python *.py", and if you want to run *.py directly, open another environment variable pathext, append the value later:
“ ;. PY;. PYM "Reprint: http://apps.hi.baidu.com/share/detail/31211367