Sublime Forum

Can't set up Sublime Text 3 with Python 3 on Mac

#1

Hi,

I’m new to Python/Sublime, and I’m trying to use Python3 in Sublime Text. I’ve tried a variety of things I found online, but nothing is working. I’m trying to get “Python 3” to come up in the Build System menu. I went into New Build System and used the command:

{
“cmd”: ["/usr/local/bin/python3", “-u”, “$file”],
“file_regex”: “^[ ]File “(…?)”, line ([0-9]*)”,
“selector”: “source.python”
}

and nothing happened at all.

I have no idea what I’m doing, and any help/advice/solutions would be helpful!

Thanks

1 Like

#2

When you say that nothing happened, what did you try?

The name that the build system appears as in the build systems menu is the name that you saved your build system to, so all else being equal you should see it in the menu under the name that you selected.

What build system is selected in the build system menu? If it’s set to the build you saved, that will be the one used. If it’s set to Automatic, then when you try to run a build in a Python file, Sublime should notice that there are multiple builds and prompt you to select the one that you want to use, and yours would appear there. If it’s set to something else, that build is being explicitly used, so changing the selection to yours or Automatic may fix things for you.

0 Likes