human
How can I know python's path under windows?
assistant
Here is some code to get the path of Python executable under windows

os.path.dirname(sys.executable)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.