Recently sublime more and more fire, and even catch up with the classic editor vim trend.
How do I run a python script in sublime?
Step 0: First to download and install Python on the Python website
Recommended Installation Python3
STEP 1: Install the plugin
Press Ctrl+shift+p to enter the install package in the pop-up text box and return. Just wait and it pops up. Plugin Manager (Linux-like Software center)
STEP 2. Install the following plugins:
Pylinter
Python PEP8 Autoformat
Python 3
STEP 3. Configuration
1. Click Preferences on the toolbar to open the Browse Packages. Locate Python in the Open folder and open the folder. Locate the file Python.sublime-build and open it.
2. Modify the following:
{
"cmd": ["Python", "-U", "$file"],
"Path": "C:/Program files/python27",
"File_regex": "^[]*file \" (...) \ ", line ([0-9]*)",
"Selector": "Source.python"
}
Modify the contents of the path to the compiler's installation directory. (Note that the slash is reversed/)
STEP 4.enjoy It!
Create a new. py file and write the code. Press Ctrl+b to run
Reference:http://www.cnblogs.com/waising/articles/3466120.html
Run Python in Sublime