Elusive Posted October 28, 2012 Posted October 28, 2012 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!
Ice IT Support Posted October 28, 2012 Posted October 28, 2012 Yes, Stevie has the newer version of Python (2.7), Johnny runs version 2.4. You will have to move to Stevie, I do not know when Johnny will be upgraded.
Elusive Posted October 29, 2012 Author Posted October 29, 2012 I'll move over then (lower load too! ). So that's a delete -> wait -> create, right? Deleting now. Thanks.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now