Sublime Forum

How to link Sublime Text 3 Build system to Python 3.9 Using Windows 10

#1

Am trying to use Sublime Text 3 (Build3211) with Python 3.9.0 on Windows 10.

Have downloaded both successfully and

  1. Gone to Sublime Text to: Tools -> Build System -> New Build System
    and put the next lines:

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

Then saved it with the name: python3.sublime-build

But when I write a program like:

print(“Help”) and run under Sublime Text to Tools Python 3, I get the following message:

Python was not found but can be installed from the Microsoft Store: https://go.microsoft.com/fwlink?linkID=2082640[Finished in 0.3s]

Am just beginning to learn how to code… PLEASE HELP!

0 Likes

#2

If you installed Python manually from a downloaded installed from the Python website, the interpreter is named python and not python3; it’s generally only named python3 on systems where it’s expected that multiple versions might be installed at the same time such as Linux and MacOS; windows installs come with extra tools to be able to execute the correct version in mixed installs.

The error message you’re seeing is because Windows 10 has a stub version of Python installed which, when executed, displays the message about using the Windows store to install Python.

The general idea there is that if you were new and tried to follow a tutorial and execute Python when you don’t have it installed, you get told how to do so instead of getting an unhelpful error message.

You could alter the build to use python instead of python3, but since you’re on Windows you can just use the built in Python build system instead, which should work just fine.

0 Likes