Sublime Text 3 Build Python-anaconda development environment

Source: Internet
Author: User
Tags sublime text



The tutorials on the web are varied and similar. I had some problems with my installation, so I summed up a blog post.



Sublime text is a lightweight, cross-platform, textual editor that expands its capabilities through the package.



There are a lot of packages that build the Python environment, where I install the Anaconda package.


1. Sublime Text Download


: HTTP://WWW.SUBLIMETEXT.COM/3






Fool-mounted, all the way to the point.


1.1 Remove the title bar of the unregistered (do not mind skip this step)


This flag appears because the software is not registered. Workaround:



First, help--about Sublime Text, view version and build versions;



Find a registration code for this version on the Internet.



Here are the registration machine hack method, 80310830


2. Installation package


Before installing all the expansion packs, first install the package Control expansion pack. This thing must be installed manually, but after installation, you can use the package Control to install, remove or upgrade all the ST3 plugins.



Click this URL from the Sublime Text 3 official get the code for installing the package Control . Click View > Show console or the command "Ctrl + key combination" to bring up the ST3 console. Paste the code just now in the console and click Enter . Finally restart the ST3.



If you see the package control item in Perferences->, the installation succeeds.






Click on the package Control, which you just generated, enter the install carriage return, or click on the red Line callout. May need to wait a while, the lower right corner has a logo swinging around. New Window (2) Enter Anaconda on the command line and click on the first option to install. The document is messages when the installation is complete.









Because the Anaconda plugin itself cannot know the path of the Python installation, the actual location of the Python main program needs to be set. Click Preferences->package Settings->anaconda:



Select the Settings-default option, search for "python_interpreter" key value pairs, and type the disk location of the Python main program. Mine is:


" Python_interpreter " " E:\\software\\anaconda3\\python.exe ",


Select the Settings-users option and type the following JSON data:


 
 
{
"python_interpreter":"C:\\Users\\13049\\AppData\\Local\\Programs\\Python\\Python36\\python.exe",
"suppress_word_completions":true,
"suppress_explicit_comletions":true,
"complete_parameters":true,
}


Save, restart ST3.






After the above steps are done, enter the Python command, but not automatically complete, we still need to do the following things.


3, repair method:


Find Sublime Text3 's package directory, from ST3 preferences->browser packages can enter



Download completion rules.tmpreferences on GitHub. Then in the package directory,Packagescreate a new folder Python, the completion rules.tmpreferences file into, restart ST3.





4, Anaconda plug-ins There are many features, and then here a little introduction:




    • Goto Definitions can find and display the definition of any variable, function or class in your entire project.
    • Find Usage can quickly find a variable, where a function or class is used in a particular file.
    • Show Documentation: the ability to display a descriptive string of a function or class (of course, in the case of a string defined)


If you want shortcut keys to bring up these features, you can define your own shortcut keys.



Open option: Preferences, package setting->anaconda->key Bulidings-default



{
"Command": "Anaconda_goto", "Keys": ["Ctrl+alt+g"], "context": [
{"Key": "selector", "operator": "Equal", "operand": "Source.python"}
]},






Sublime Text 3 Build Python-anaconda development environment


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.