I’ve downloaded python installer from http://www.python.org/ftp/python/3.1.2/ , this python-3.1.2.msi file, I need to execute some python files? How do I do that? For example in php I’d do php filename.php from console, I do however have python command line but I don’t know how to execute those files.
So if I could set ENV variable to directly execute my file(s) if that is possible that would be great.
There is an option in the installer called “Register Extensions” to associate Python files with the interpreter, so double-clicking them or entering
filename.pyin the console should work.Apart from that you might want to add
C:\Python31to yourPATHvariable (right-click on My Computer, choose Settings, choose the Advanced Tab – there you can access the system variables. Better do this as an admin.