Sublime Text3 Configuring the Python Development Environment (Windows edition)

Source: Internet
Author: User

Installation phase:
    1. Installation of Sublime Text3:
      • Download URL: https://www.sublimetext.com/
      • When the download is complete, click Install.
    2. Install the package Control:
      • Click Tools, install package Control
    3. Install Anaconda:
      • Ctrl+shift+p, enter install package, input anaconda, enter
    4. Install SUBLIMEREPL:
      • Ctrl+shift+p, enter install package, input SUBLIMEREPL, enter
    5. Install Djaneiro:
      • Ctrl+shift+p, enter install package, input Djaneiro, enter
Configuration phase:
    • Configuration SUBLIMEREPL:
        Preferences, browse Packages, sublimerepl, config, python, open main.sublime-menu, find /c0>
{"Command": "Repl_open",                     "caption": "Python-run Current File",                     "id": "Repl_python_run",                     "mnemonic": "R",                     "args": {                        "type": "Subprocess",                        "encoding": "UTF8",                        "cmd": ["Python", "-U", "-I", "$file _basename"],                        "CWD": "$file _path",                        "Syntax": "Packages/python/python.tmlanguage",                        "external_id": "Python",                        "Extend_env": {"pythonioencoding": "Utf-8"}                        }                    ,

Modify the "cmd" entry in it.

      • If Python2 and Python are installed on your computer

          • To use Python2 cmd, fill in "cmd": ["Python", "-U", "-I", "$file _basename"]
          • If you want to python3 cmd, fill in "cmd": ["Python3", "-U", "-I", "$file _basename"]
      • If there is only one Python version in your computer

          • Directly fill in "cmd": ["Python", "-U", "-I", "$file _basename"]
    • Custom Sublimerepl shortcut keys

Preferences, browse package, Sublimerepl, config, python, open default.sublime-commands

{        "caption": "Sublimerepl:python-run Current File",        "command": "Run_existing_window_command", "args":        { "            ID": "Repl_python_run", "            file": "Config/python/main.sublime-menu"        }    },

and copy to Preferences, key Bindings, and add the shortcut keys you want to set in your code, as follows:

{"        keys": ["SHIFT+F10"],     //Modify the contents of square brackets, custom shortcut        "caption": "Sublimerepl:python-run Current File",        " Command ":" Run_existing_window_command "," args ":        {            " id ":" Repl_python_run ",            " file ":" config/python/ Main.sublime-menu "        }    },

Sublime Text3 Configuring the Python Development Environment (Windows edition)

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.