Question - How to link Sublime Text 3 Build system (Build 3211) to Python 3.9 Using Windows 10

All other Source.Python topics and issues.
Fanman001
Junior Member
Posts: 1
Joined: Fri Nov 27, 2020 11:30 pm

Question - How to link Sublime Text 3 Build system (Build 3211) to Python 3.9 Using Windows 10

Postby Fanman001 » Fri Nov 27, 2020 11:36 pm

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"
}

2. Then saved it with the name: python3.sublime-build
3. 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!
DeaD_EyE
Member
Posts: 34
Joined: Wed Jan 08, 2014 10:32 am

Re: Question - How to link Sublime Text 3 Build system (Build 3211) to Python 3.9 Using Windows 10

Postby DeaD_EyE » Fri Dec 04, 2020 12:10 pm

Try this:

Code: Select all

{
"cmd": ["py", "3.9", "-u", "$file"],
"file_regex": "^[ ]File \"(...?)\", line ([0-9]*)",
"selector": "source.python"
}


py.exe is installed together with Python, if you used the Python-Installer from python.org: Python on Windows

The alternative is to install with the Microsoft Store Python 3.9. Then py.exe is not installed + py.exe does not find the Interpreters installed via Microsoft Store.

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 14 guests