-
-
Save zaemiel/4fbd8b5125fda7a140be to your computer and use it in GitHub Desktop.
1. Go to Sublime Text to: Tools -> Build System -> New Build System | |
and put the next lines: | |
{ | |
"cmd": ["python3", "-i", "-u", "$file"], | |
"file_regex": "^[ ]File \"(...?)\", line ([0-9]*)", | |
"selector": "source.python" | |
} | |
Then save it with a meaningful name like: python3.sublime-build | |
2. Go to Tools -> Build system -> and check python3 | |
test it with: | |
import sys | |
print(sys.version) | |
Press: Ctrl + b | |
thank you so much! other versions of this code do not work on python 3.9
Am trying to use Sublime Text 3 (Build3211) with Python 3.9.0 on Windows 10.
Have downloaded both successfully and
- 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 a meaningful name like: 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!
Am trying to use Sublime Text 3 (Build3211) with Python 3.9.0 on Windows 10.
Have downloaded both successfully and
- 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 a meaningful name like: 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!
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 a meaningful name like: 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=2082640Finished in 0.3s]
Am just beginning to learn how to code... PLEASE HELP!
Did you install Python?
Go to the https://www.python.org/downloads/
Download and install (when it will ask you to include the path to Python to the PATH environment variable you should agree).
Open cmd and input python...
Also Windows has no 'python3', only 'python' - the command you use to get the Python's shell.
Thank you very much!
Thanks a lot
Hi, I get this message: [Errno 2] No such file or directory
Any idea how to fix this?
Try this code:
{ "shell_cmd": "gnome-terminal --working-directory=$file_path -- bash -c 'python3 -u \"$file\" && read -n 1 -s -r'", "working_dir": "$file_path", "selector": "source.python", "env": {"PYTHONIOENCODING": "utf-8"} }
i cant give input
thank you its work to me! but i change code a little bit. if you guys still have a problem like the code not build, you can try this code
{
"cmd": ["C:\Python\Python397\python.exe", "-u", "$file"],
"file_regex": "^[ ]File "(...?)", line ([0-9]*)",
"selector": "source.python"
}
i hope this will help you guys :)
On Linux: NO BUILD SYSTEM FOUND.
Because I first had this (check the ASTERISKS!):
Changed to this: