Last active
August 28, 2024 20:13
-
-
Save zaemiel/4fbd8b5125fda7a140be to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 :)