Pydev say, “Unresolved import” error

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

    I solved by recreate the interpreter. There is a guide at pedev.org:

    What if I add something new in my System PYTHONPATH after configuring it?

    If you add something to your python installation, you need to either add it manually as a 'new folder' in the System PYTHONPATH (if it's still not under a folder in the PYTHONPATH) or (recommended) remove your interpreter and add it again, then, press apply.

    Note that if you added a library that's already under a folder in the PYTHONPATH, you have to at least go to the interpreter preferences and press apply so that it clears its internal caches (after the configuration is done, things are set in stone for PyDev)

    Thanks for Fabio Zadrozny and nicodjimenez.

提交回复
热议问题