I am using eclipse as an IDE for python. I recently ran into some strange problem.
The file contains import from external libraries (for example, wx, matplotlib, etc.). If I put it in the src directory, it will start as expected, but in the editor I get error labels in all places where I use imported libraries . Errors say things like "Undefined variable from import".
If I put it at the top level of the project, the error labels will disappear.
I added a screenshot of the configuration. I have a feeling that there is a source of the problem, but I do not know what to do.

source
share