Pydev say, “Unresolved import” error

前端 未结 11 1436
梦谈多话
梦谈多话 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:23

    In the properties for your pydev project, there's a pane called "PyDev - PYTHONPATH", with a sub-pane called "External Libraries". You can add source folders (any folder that has an init.py) to the path using that pane. Your project code will then be able to import modules from those source folders. Check this two links it may be helps to you, Unresolved Import Issues with PyDev and Eclipse

    Unresolved import: models

提交回复
热议问题