- Go to Sublime Text to: Tools -> Build System -> New Build System and put the next lines:
{
"shell_cmd": "/usr/bin/env python3 -u \"${file}\" 2> >(tr '\\n' '|')",
"selector": "source.python",
"file_regex": "[ ]*File \"(...*?)\", line ([0-9]*)(...*?)\\|...*?\\|(.*)\\|",
"working_dir": "${file_path}"
}