How can I run a script under Python 2.7? I am on Johnny. Are newer versions of Python only available on Stevie?
#! /usr/bin/env python
import sys
print ("Content-type: text/plain\n\n")
print (sys.version)
reports:
2.4.3 (#1, Jun 18 2012, 08:55:23)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)]
#! /usr/bin/python2.4
also reports 2.4.3 The following all resulted in a HTTP 500 response:
#! /usr/bin/env python2.7
#! /usr/bin/python2.7
#! /usr/local/bin/python2.7
#! /bin/python2.7
#! /usr/bin/env python27
#! /usr/bin/python27
#! /usr/local/bin/python27
#! /bin/python27
#! /usr/bin/env python3.2
#! /usr/bin/python3.2
#! /usr/bin/env python32
#! /usr/bin/python32
Thanks!