How to build a Python ide with sublime text 3

Source: Internet
Author: User
Tags sublime text


How do I build a Python ide with sublime text 3?


Description: Do not know why, when writing a blog, the picture can not be uploaded, helpless, the article in the local PDF, put in the attachment, we may download the PDF, to bring you the inconvenience of reading, but also hope understanding.


  1. First download Sublime text 3.
  2. Two versions are available for Windows 7,sublime Text 3, one for the installation version and one for the green unzip version
    This is only an example of the decompression version. (I like the green decompression version, because it comes with the walk, convenient ~)
    Visit Http://www.sublimetext.com/3 to sublime text 3 official Download interface, find the content shown, "Portable version" is the green decompression version, click to download.

  3. After the download is complete, unzip it. (because it is the green version) the extracted file directory as shown.
  4. 650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>

  5. Test run. Double hit the sublime_text.exe,sublime successful start, is not very simple, very convenient ah?
  6. Create a new file with sublime, named hello.py, with the file contents as follows

  7. print (' Hello world ') 


    The steps to run hello.py are as follows:
    1) Click "Tools->build".
    650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/ Zh-cn/images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>
    2) When the first run occurs, the choices shown, We can choose Python.
    650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/ Zh-cn/images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "spacer.gif"/>



3.AutoFileName (plug-ins for auto-complete file paths)
...
Other plugins, I will not list the introduction. I almost forgot, I haven't told you how the package control is installed. The way to install the package Control is simple:
First, click on the menu as shown, and the shortcut is CTRL + '.
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>
Copy the following code


import urllib.request,os,hashlib; h =  ' 2915d1851351e5ee549c20394736b442 '  +  ' 8bc59f460fa1548d1514676163dafc88 '; pf =  ' package control.sublime-package ';  ipp =  sublime.installed_packages_path ();  urllib.request.install_opener ( urllib.request.build_opener (  urllib.request.proxyhandler ())  )  by = urllib.request.urlopen (  ' http:// packagecontrol.io/'  + pf.replace ('   ',  '%20 '). read ();  dh = hashlib.sha256 ( by). Hexdigest ();  print (' error validating download  (got %s instead of % s),  please try manual install '  %  (dh, h))  if dh != h  else open (Os.path.join ( IPP, PF),  ' WB '  ). Write (by)



Paste the code in the location shown, press ENTER, and wait for the installation to complete.






So, how do you install Anaconda plug-ins next? With the package control, it is much simpler,
Restart Sublime, the preference menu will have a package Control menu, click,:
650) this.width=650; "Src="/E /u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") No-repeat center;border:1px solid #ddd; "alt=" Spacer.gif "/>
Click



650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>
Enter the name of the plug-in you want to install in the red box shown, for example Anaconda, if Anaconda exists, the results will be listed as shown, click on the results of the plug-in, that is, to start the automatic installation, you have to look at the lower left corner of the status bar, to be installed to complete.
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>






This article from the "Free, sharing" blog, reproduced please contact the author!



How to build a Python ide with sublime text 3


Related Article

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.