Sublime Develop Python programs

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.