Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Why don't you run it as sage instead of trying to run it as a python file? Simply use

#!/usr/bin/env sage

Also, note that the #! you used would try to run a command called sage -python instead of running the command sage with the argument -python.