The py Command The default Python interpreter is referenced on Windows using the command py. Using the Command Prompt, you can use the -V option to print out the version . You can also specify the version of Python you’d like to run. For Windows, you can just provide an option like -2.7 to run version 2.7.