Pydev say, “Unresolved import” error

前端 未结 11 1453
梦谈多话
梦谈多话 2020-12-10 17:42

hm.. Sometime, PyDev say \"Unresolved import error\". In my environment

Python2.6.6 Eclipse3.7 PyDev2.2.2

Errors are.

         


        
11条回答
  •  隐瞒了意图╮
    2020-12-10 18:22

    I was having a similar problem with the dbfpy module.

    1. I had downloaded the tar archive and installed the source files in /usr/lib/python2.7/dist-packages

    2. With this I was able to import the packages in IDLE and even run the code in Eclipse. However the pydev import was still showing as an error with the message "unresolved import"

    3. As suggested by Fabio, I checked the PyDev documentation for forced-builtins. Just adding the name of the package ("dbfpy" in my case to the Forced Builtit tab of Python Interpretr in Eclipse) solved the issue.

提交回复
热议问题