开发者

Python with eclipse import problem

I use eclipse as my IDE for python. Recently I encountered a strange problem.

A file contains an import from external libraries (such as wx, matplotlib etc.) if I put it inside the src directory, it will run as expected, but in the editor, I get error marks all over the places where I use the imported libraries. The errors say things like "Undefined variable from import".

If I 开发者_StackOverflowput it in top level of the project, the error marks disappear.

I have added a screenshot of the configuration. I have a feeling that the source of the problem is there, but do not know what to do.

Python with eclipse import problem


In my installation I have several other libraries in the system pythonpath dialog including wx. Try setting the interpreter again in order to reload the libraries or load them manually.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜