There's no clean way like shebang on unix. Windows is using
associations to get python to execute the script, the same way that it
knows to use Word to open .doc files. You do have several options,
but none of them real clean. They all center around writing a wrapper
that looks at the first line to determine which version of python to
run. Here are some examples:
* Write a simple executable that is associated with python files in
windows, and have it inspect the first line to determine which version
of python to use
* for each script, write a bat or cmd file that you call instead of
the .py file that calls the right version of python
I'm sure there are more. I am most definitely NOT an expert on
windows, and couldn't tell you how to associate a .py file with an
executable, I'm sure it has something to do with the registry. I've
asked several other people in the office, and no one knows a good way
of doing this other than the examples I've included.
Jason Corbett