Hi, I’m brand new to programming and trying to get python3 to run in Sublime Text 3 on my MacBook Pro. I’ve installed Python3 and I know that it runs in the terminal:
Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 03:03:55)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type “help”, “copyright”, “credits” or “license” for more information.print(“Hello World”)
Hello World
And I’ve built a new system to run python3 in sublime. (Saved it as a .sublime-build file.)
{
“cmd”: ["/usr/local/bin/python3", “-u”, “$file”],
“file_regex”: “^[ ]File "(…?)”, line ([0-9]*)",
“selector”: “source.python”
}
I’ve been searching online and I’ve tried several different formats for the build system, but all of them have resulted in the same problem. When I build, the only result is this:
All I see is how long the program took to run, there is no output. I made sure to shift+command+b and command+b in order to select the system but this is the only thing I see.
I’ve tried using the default python build system (which I assume runs python 2.7 because that is pre-installed on my Mac) and the result is the same. Python doesn’t seem to work on Sublime.
I would greatly appreciate any help. I’m eager to start programming but don’t know how to get past this!
Thanks!