I use Sublime 3 as my editor on mac. Several backend files required changes. Changes were made to Python3.sublime-build file:
{
"cmd": ["/usr/local/bin/python3", "-u", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python",
"encoding": "utf8",
"path": "/usr/local/Frameworks/Python.framework/Versions/3.3/bin/"
}
The SublimeREPL package was also installed.
The Main.sublime-menu file was edited to reflect the following:
{"command": "repl_open",
"caption": "Python3 - RUN current file",
"id": "repl_python_run",
"mnemonic": "d",
"args": {
"type": "subprocess",
"encoding": "utf8",
"cmd": ["python3", "-u", "$file_basename"],
"cwd": "$file_path",
"syntax": "Packages/Python/Python.tmLanguage",
"external_id": "python",
"extend_env": {"PYTHONIOENCODING": "utf-8"}
}
}
These are the major changes in a nutshell. More details with guided step-by-step instructions are available at
Setting Up Sublime Text 3 for Python3 Development.