sublime3 python3 development environment and configuration

First, download and install sublime3

This step is not detailed to say, if you do not, please move http://www.sublimetext.com/3.

Note: This tutorial is based on the MacOS, if you are other systems, it may not apply.

The first step: the environment and the local python associate sublime3

1. Open the teminal terminal input: type -a python3, show python3 path: / usr / local / bin / python3

2. Open the Sublime, Tools -> Build System -> New Build System, enter the following:

{

"cmd": ["/usr/local/bin/python3", "-u", "$file"],

}

3. Save, named Python3.sublime-build, the default location to save User

4. Select the Tools -> Build System -> Python3 to

Step Two: Configure package control-- install plug

 

1. Click Preferences> Browse Packages ... menu

2. Browse for Folder, then enter the Installed Packages folder

3. Download Package Control.sublime-package and copy it to the Installed Packages directory

4. Restart Sublime3

 

Step 3: Install Anaconda (should be the most comprehensive sublime - python plugin)

 

Hold down the command + shift + p to open the package control

Enter the install as shown below, click on the install package wait for input box

 

Note: Make sure the network is normal

    3. After entering the box appears, Anaconda input, select the first installation    

    4. Set the local environment and configuration python

A: change the default settings

 

Search python_interpreter, Mac changed the location of its own native

 

Note: If you do not know where their python3 attached, see below, enter which python3 Find

 

B: Add User Settings

 

After opening a blank json, fill in the following information

 

{ 

    // https://github.com/DamnWidget/anaconda/blob/master/Anaconda.sublime-settings 

    "python_interpreter": "/ usr / local / bin / to python3", 

    "complete_parameters": to false, // autocomplete match the necessary parameters when the function 

    "complete_all_parameters": false, // match when auto-complete function for all parameter 

    "suppress_word_completions": false, // disable code completion 

    "suppress_explicit_completions": false, // Disable accurate completion 

    "auto_formatting" : true, // check Code format 

    "enable_docstrings_tooltip": false, // display the document 

    "enable_signatures_tooltip": false, // window displayed in the suspension method signature 

    "display_signatures": false // display method signatures 

}
   

     After completion of the above step 4. Restart sublime3

 

    Code appears 5. After the above steps auto-completion

 

 

 

Finally, at this point it's done, congratulations. Join the road of learning python.

 

Like python or are learning to automated testing automated testing of students, welcome to my QQ group:  299 524 235 (automated test learning python)

 

Guess you like

Origin www.cnblogs.com/wxhou/p/11494068.html