downloading and installing a Python program
https://www.python.org/downloads/
Download, install sublime
http://www.sublimetext.com/
associating Python
Preferences->browers Packages->python->python.sublime-build
Modify the Python.sublime-build file to add the Python installation path
{
"cmd": ["Python", "-U", "$file"],
"path": "D:\Python33", "
File_regex": "^[]*file \" (... *?) \ ", line ([0-9]*)",
"selector": "Source.python"
}
Install Package control
Sublime Package control can be said to be a plug-in that must be installed because it provides the ability to install/upgrade/remove Sublime plug-ins conveniently
With the shortcut key ctrl+shift+p (Win, Linux) or cmd+shift+p (OS X), where Package control: The beginning of all of its related commands, the most common may be Package control:install Pa Ckage, Package control:remove Package, Package control:list these commands.
Installation Steps:view-> The Show Console menu to open the console and then paste the corresponding version of the Code return
Applies to Sublime Text 3:
Import Urllib.request,os;
pf= ' Package control.sublime-package ';
Ipp=sublime.installed_packages_path ();
Urllib.request.install_opener (Urllib.request.build_opener (Urllib.request.ProxyHandler ()));
Open (Os.path.join (IPP,PF), ' WB '). Write (Urllib.request.urlopen (' http://sublime.wbond.net/' +pf.replace (", '%20 ')) . Read ())
Applies to Sublime Text 2:
Import Urllib2,os;
pf= ' Package control.sublime-package ';
Ipp=sublime.installed_packages_path ();
Os.makedirs (IPP) ifnotos.path.exists (IPP) Elsenone;
Urllib2.install_opener (Urllib2.build_opener) (urllib2. Proxyhandler ()));
Open (Os.path.join (IPP,PF), ' WB '). Write (Urllib2.urlopen (' http://sublime.wbond.net/' +pf.replace ('), '%20 '). Read () );
Print (' Please restart Sublime Text to finish installation ')
installing plug-ins Python Code auto-complement (Jedi)
Ctrl+shift+p turn on Package control and enter install Package carriage return, enter Jedi