Forked from zaemiel/How to link Sublime Text Build system to Python 3
Last active
May 1, 2019 07:28
-
-
Save hlung/de2091f2f1a09c8c58f20d7bafa5da6b to your computer and use it in GitHub Desktop.
This file contains hidden or 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", "-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