(iii) Configuring the PYTHON3 compilation Environment
1. Click the upper menu bar tools->build system->new Build System
2. After clicking, an empty configuration file appears, and the following code is copied to this empty configuration file:
?
| 12345 |
{ "cmd": ["/usr/local/bin/python3", "-u", "$file"], "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", "selector": "source.python" } |
Among them,/usr/local/bin/python3 for the system to install Python environment path, in Ubuntu, for example, open terminal, input which python3 can display the path Python3.
3. Save the configuration file, the default open pop-up box is saved under the path named Python3.sublime-build.
4. Finally, in Sublime Text3, click Tools->build System to select Python3, you can use Ctrl+b call Python3 for code compilation.
At this point, all the configuration has been finished!!!
The above is the whole content of this article, I hope that everyone's learning has helped, but also hope that we support the script home.
Linux Sublime Python