Pydev 说,“未解决的导入";错误 [英] Pydev say, "Unresolved import" error
本文介绍了Pydev 说,“未解决的导入";错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗯..有时,PyDev 会说未解决的导入错误".在我的环境中
hm.. Sometime, PyDev say "Unresolved import error". In my environment
Python2.6.6 Eclipse3.7 PyDev2.2.2
Python2.6.6 Eclipse3.7 PyDev2.2.2
错误是.
> Unresolved import: pycassa -> import pycassa Unresolved import:
> WebSocketHandler -> from geventwebsocket.handler import
> WebSocketHandler Unresolved import: tweepy -> import tweepy
有什么有用的信息吗?
推荐答案
遇到了同样的问题.最后,我通过在 Preferences > PyDev > Interpreters 中删除我的旧解释器,并创建一个名为python"的具有正确路径的新解释器来解决问题.退出并重新打开 eclipse 后,pydev 找到了我所有的模块.
Had the same problem. In the end I was able to fix the problem by deleting my old interpreter in Preferences > PyDev > Interpreters, and creating a new interpreter called "python" which had the correct paths. After quitting and reopening eclipse, pydev found all my modules.
这篇关于Pydev 说,“未解决的导入";错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文