The configuration method of sublime Python development environment under Win7 _python

Source: Internet
Author: User

STEP1: Installing Python and Sublime

STEP2: Install package control for sublime, install see: Official website

STEP3: Configuring the installation path

Way One: Configure the path of Windows

The advantage is CMD time also can run, as a system, user-level configuration;

Mode two: Configure Sublime Python's Sublime_build

Click: Preference-> Browse Packages-> in the Python directory, edit the Python.sublime-build file and add the path to the Python application:

{
 "cmd": ["Python.exe", "-U", "$file"],
 "path": "C:/python27",
 "File_regex": "^[]*file \" (... *?) \ ", line ([0-9]*)",
 "selector": "Source.python"
}

At this point, you can use CTRL + B to run the current Python code directly.

STEP4: Installing some Plug-ins

Installation method:

Ctrl+shift+p Open the Control Panel, find the Install Package, enter the plug-in name in the pop-up box, the carriage return can be installed. or follow the instructions in the plugin to install the file.

Online Recommended Plug-ins:

SUBLIMEREPL can be used to run and debug programs that require interaction.
Sublimecodeintel can support the automatic completion of code, as well as members/method hints and other functions.
Sublimelinter is used to do code checking when writing code, to check whether Python code meets PEP8 requirements.

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.