Configure sublime text 3 using python and sublimepython
1. Download it on the official website of sublime text. It is a suitable version for your system. Address: https://www.sublimetext.com/3
2. After installation, open Preferences ---> Settings in the menu bar (this is the latest version when this is written)
3. Open these two files: Preferences. sublime-settings -- Default and Preferences. sublime-settings -- User.
The User file is edited.
4. write such a piece of configuration information/code in the braces of the file and save it:
1 // Settings in here override those in "Default/Preferences.sublime-settings", 2 // and are overridden in turn by syntax-specific settings. 3 { 4 5 "python":{ 6 "Python":"D:/Python27/python.exe", 7 "pythonExtraPaths": 8 [ 9 "D:/Python27",10 "D:/Python27/DLLS",11 "D:/Python27/Lib",12 "D:/Python27/Lib/site_packages"13 ]14 },15 16 }
5. After the configuration is complete, run Ctrl-B. However, if no output information is found, the following configuration is required.
File ---> New File: Create a New File and save it as Python. sublime-build (Python can also write other ideas, such as My_Python)
You also need to write a piece of configuration information/code in it to save:
1 {2 "shell_cmd": "d:/python27/python.exe -u \"$file\"",3 "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",4 "selector": "source.python",5 "encoding":"cp936"6 }
6. Execute Ctrl-B again to check whether the system can run normally and see the output (provided that you have to have the output)