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.
- First download Sublime text 3.
-
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.
- After the download is complete, unzip it. (because it is the green version) the extracted file directory as shown.
-
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"/>
- Test run. Double hit the sublime_text.exe,sublime successful start, is not very simple, very convenient ah?
- Create a new file with sublime, named hello.py, with the file contents as follows
-
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