title: How to run Python3 on Sublime Text 3 on macOS?
body: <p>I've created a <code>python3.sublime-build</code>:</p>
  <pre><code>{
    &quot;path&quot;: &quot;/usr/local/bin/python&quot;,
    &quot;cmd&quot;: [&quot;python3&quot;, &quot;-u&quot;, &quot;$file&quot;],
    &quot;file_regex&quot;: &quot;^[ ]*File \&quot;(...*?)\&quot;, line ([0-9]*)&quot;,
    &quot;selector&quot;: &quot;source.python&quot;
  }
  </code></pre>
  <p>and <code>$ which python3</code> returns,</p>
  <pre><code>/usr/local/bin/python3
  </code></pre>
  <p>likely installed with <code>brew</code>.</p>
  <p>and <kbd>Command</kbd> + <kbd>B</kbd> returns this error:</p>
  <pre><code>[Errno 20] Not a directory
  [cmd: ['python3', '-u', '/path/to/dir/filename.py']]
  [dir: /path/to/dir]
  [path: /usr/local/bin/python]
  [Finished]
  </code></pre>
  <p>have looked into some relevant <a href="https://stackoverflow.com/questions/18014360/sublime-errno-2-no-such-file-or-directory-node">posts</a>, and couldn't solve it.</p>
  <p>How do I solve the problem?</p>