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! Quote
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. Quote
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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.