Sublime Text Configuration Python environment

Source: Internet
Author: User
Tags sublime text

Just beginning to learn python, with Python idle.bat, always feel too humble, the font is very small, there is no automatic completion of things, before a period of time in the writing web play, has been using the sublime text 3--this lightweight and highly scalable and high-value editor, Think of writing on the St3 Python is not flattered, so search for a wave, and finally found that ST3 directly provides a powerful plug-in--anaconda, you can make St3 into a python IDE.

1. Download good python and sublime text 3

2. Open the installation package management tool (this will not be small white please self Baidu, not very good), enter the install packages, and then input anaconda, enter the installation

3. After saving the file name as a. py suffix, you will find that the write Python will be highlighted and auto-complete.

4. You may have this situation:

Using ST3 to open a Python file has this problem, and later found no effect on running Python.

Personal Obsessive Compulsive disorder again, someone let me try----try to set the ' swallow_startup_errors ' to ' true '

And then find out that this JSON setting is actually in SUBLIMEREPL rather than anaconda ...

All right, let's try it first.

Enter Preferences--package settings-->sublimerpel-->settings user

Type: "Swallow_startup_errors": true,

Restart after saving. Gee, the error seems to be really out of the eh. So happy in a few py file direct switch to try, and then found that too fast this error is still possible, the specific reason is unknown, but much better than before.

You may also encounter this problem ↓:

White boxes and small white dots, guess maybe because of the python indentation?

(It doesn't matter if you like it, don't change it)

I personally look very uncomfortable, after the search found this is the default feature, open preferences-pacakage settings-anaconda-settings user

Add the following sentence:

can solve this problem.

Then you can happily write Python with St3. (Ctrl + B to run)

Well, is this the end of the story? Of course not

And then I ran into the first pit:input is invalid

In other words, you write a code like this

There is no response after entering 6 below.

The solution is to install a plugin called SUBLIMEREPL:

Refer to this article: http://blog.csdn.net/u010223904/article/details/46354495

Sublime Text Configuration Python 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.