How to edit and run python code in Sublime Text 3
May 24, 2021
Sublime Text Use the manual
Python installation process see here:
Python3 installation, I
will not do more here to
explain.
Once installed, we can edit and run the python code in Sublime Text3, with the following main steps:
-
The python test code written here is as follows: Very simple, 2 functions, one compute side, one creation window:
-
After writing, you can not run python code directly, here you need to configure the compilation system, as follows, click on the "tools" - "new compilation system" - "new compilation system...", enter the following configuration information, here to replace with their own python interpreter path on the line:
-
Once the configuration is complete, save the compiled system, select the system, and press "Ctrl-B" to run the python code, as follows:
At this point, we're done with the installation of python and how to configure the running python code in Sublime text3.
In general, the whole process is not difficult, as long as you follow the steps above step by step installation configuration, will soon be able to successfully install python, and run python program in Sublime text3, there are relevant tutorials and materials on the Internet for reference, interested, you can search.