In the future, the solution is to upgrade Python 3.2 to 3.3 or later and use the Python Launcher for Windows .
At the top of each Python 3 program, specify the following line:
At the top of each Python 2 program, specify the following line:
Part #!
, called shebang , points to the Python Launcher which version of Python is required. (He also tells UNIX that the program should run with a specific interpreter instead of a shell.) The /usr/bin/env
helps you find the Python interpreter on your PATH
when you run the program on UNIX. If you do not plan to use anything other than Windows, you can leave it:
#! python3 [or]
Damian yerrick
source share