STEP1: Installing Python and Sublime
STEP2: Install package control for sublime, install see: Official website
STEP3: Configuring the installation path
Way One: Configure the path of Windows
The advantage is CMD time also can run, as a system, user-level configuration;
Mode two: Configure Sublime Python's Sublime_build
Click: Preference-> Browse Packages-> in the Python directory, edit the Python.sublime-build file and add the path to the Python application:
{
"cmd": ["Python.exe", "-U", "$file"],
"path": "C:/python27",
"File_regex": "^[]*file \" (... *?) \ ", line ([0-9]*)",
"selector": "Source.python"
}
At this point, you can use CTRL + B to run the current Python code directly.
STEP4: Installing some Plug-ins
Installation method:
Ctrl+shift+p Open the Control Panel, find the Install Package, enter the plug-in name in the pop-up box, the carriage return can be installed. or follow the instructions in the plugin to install the file.
Online Recommended Plug-ins:
SUBLIMEREPL can be used to run and debug programs that require interaction.
Sublimecodeintel can support the automatic completion of code, as well as members/method hints and other functions.
Sublimelinter is used to do code checking when writing code, to check whether Python code meets PEP8 requirements.