-2

How can I execute Python 2.7 code using Sublime Text 3 on Windows 10? When I use the shortcut Ctrl+B it says 'python' is not recognized as an internal or external command, operable program or batch file. I can't edit python.sublime-build because as far as I know it does not exist in Sublime Text 3.

EDIT: I see this question is a duplicate. I did not see the post when I searched up the topic for some reason.

Jordan M. Baron
  • 241
  • 1
  • 4
  • 15

1 Answers1

3

You need to add python to your system path or if you already have there is a chance that that in C:\Windows there is exe with python icon called "py" rename it to "python" and it should work fine.