A Red Cross occurs in the pydev import extension module.

Source: Internet
Author: User

Today, I compiled a c extension module and copied it to the python library directory (D: \ Program Files \ python2_7 \ DLLs,

A Red Cross occurs when it is imported to the system, but it is strange that it can be called, so I checked it. It turns out that the database needs to be reloaded.

There are two methods:

Method 1: Go to Windows> Preferences> Pydev> Interpreter-Python and go to the Forced Builtins page.

Add the name of the imported module to a New project. After applying, Pydev will find the names of these modules in lib again,

In this way, no error is prompted in the code.


Method 2: Go to the Windows> Preferences> Pydev> Interpreter-Python menu and click Apply in the lower right corner of Libraries,

Let Pydev Reload all modules to complete the above tasks. This should be better than the previous method.


Reference: http://www.kaij.org/blog? P = 28

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.