Web & Classic Hosting Help

Managing Python Script File Extensions

You can run both Python versions 2.3 and 2.4. Files running under different versions of Python can all use the same .py extension if the version is specified in the script itself. To specify the version, type one of the following at the top of a Python script:

Python 2.3

#!/usr/bin/python2.3

Python 2.4

#!/usr/bin/python2.4

Was This Article Helpful?
Thank You For Your Feedback
Glad we helped! Anything more we can do for you?
Sorry about that. How can we be more helpful?