All my current coding has been in python 3, which I\'ve installed via the Anaconda package. However I need to work on some code simultaneously in python 2. Is there a way I
Old question, but...
On Windows, you dont need create a new build system or specify the absolute path. Edit already existing python build system.
SublimeText\Data\Packages\
create folder Python
-> like this SublimeText\Data\Packages\Python\
Python.sublime-build
, it will overwrite the existing python build system.In this file write (python launcher documentation):
{
"shell_cmd": "py -u \"$file\"",
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python",
"env": {"PYTHONIOENCODING": "utf-8"},
}
For choose version of python interpretator, in the first line of your scripts write (shebang lines)
#! python
or#! python3