Add third-party Python source/project to current Pythdev engineering method (OpenStack-based) in eclipse

Source: Internet
Author: User

For example: In an existing Pythondev project Glance-stable-icehouse utils.py file, the From Oslo.config import CFG displays the error symbol unresolved from Oslo.config Import CFG:


Indicates that the OSLO.CONFIG related modules cannot be found, cannot be parsed and processed, generally because the module is imported into the current project.

Here's how to import the module to the current project:

1, choose the current project Glance-stable-icehouse, right-"properties;

2, choose pydev-pytnonpath-"External libraries-" Add source folder-"Select the source folder to import into the current project oslo.config-" to determine;


3, confirm the addition of the Oslo.config module to the current project;


4, found in the project utils.py from the Oslo.config import cfg error disappears, the module can be normal import and call.



Reprint please be sure to indicate the source: http://blog.csdn.net/victor1984/article/details/43071069


Add third-party Python source/project to current Pythdev engineering method (OpenStack-based) in eclipse

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.