Forums

How to run a script in Python 2.7?

Hey y'all, I have a file I want to run in Python 2.7 instead of ... whatever the default is. How do I specify a version? thanks!

Is this in the editor that you launch from the "Files" tab? If so, this help page is what you need.

Or type 'python fred.py' in a bash shell - the current default is 2.7.6.