I am guessing you are using the binary version of web2py for windows, but you should use the source distribution if you want to execute the web2py file directly?
- [web2py] Python 2.5 and python 2.7 conflict within web2py? weheh
- [web2py] Re: Python 2.5 and python 2.7 conflict within web2py? cjrh