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