[Eclipse]-resolves the unresolved import flask issue that occurs with the Import Flask module

Source: Internet
Author: User

Http://www.cnblogs.com/mizhon/p/4242073.html

[Eclipse]-resolves the unresolved import flask issue that occurs with the Import Flask module

Recently want to learn about flask, after installing the flask in Eclipse import flask module, found that there will be the following problems:

Google took a lap, the corresponding information are read, this several help (need FQ), I follow the first reference set a bit, red fork still not removed.

The second blog is in English and there is no picture without the truth, it did not look carefully (but actually solved the problem). Here is an illustrated record of your own settings.

1. Http://stackoverflow.com/questions/14997336/how-to-make-eclipse-pydev-happy-to-see-flask-extensions-on-windows

2. Http://blog.jasongiedymin.com/post/3855004203/make-eclipse-pydev-happy-to-see-flask-flask

Although the operation is not a problem, but it is always difficult to look at, there is a code neat people look certainly uncomfortable.

The solution is as follows:

1. Follow the first reference and set the steps as follows:

A) Select ' Windows ' > ' Preferences ' > ' Interpreter-python ' in eclipse

b) Tap forced builtins, click the ' New ' button, add flask.ext and confirm.

2. Tap Libraries Tab, click on the button on the right: ' New Folder ', select the installation path where flask is located and click OK (Eclipse will load).

3. Reboot and click ' File ' > ' Restart ' to restart Eclipse. Check the display status of the import flask. Look, Little Red fork really no! ~

[Eclipse]-resolves the unresolved import flask issue that occurs with the Import Flask module

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.