This works for me under cygwin. Start the script with the line #! /usr/bin/python Place the script in a directory shown by the command echo $PATH Invoke the script using its name, i.e. test.py