最近发现安装了opencv后,在Eclipse的PyDev中开发时,不能提示代码的方法,而且还把error
网上查了一下有好多说重新配置一下PYTHON HOME就好了,但是我的却无论如何都不好。
比如这篇文章:http://blog.youkuaiyun.com/talkxin/article/details/50594874
于是谷歌了一翻,也有样这么说,终于最后找到了另外一个说法,解决了
https://stackoverflow.com/questions/4631377/unresolved-import-issues-with-pydev-and-eclipse
第一个回答的下面的评论处有一句:
One other point to note - Eclipse may need to be restarted for this to work. This only seems to work via "File -> Restart" and not by closing and reopening manually. – soulBit May 11 '11 at 14:51这个就是正解啦,就算重新配置PYTHON PATH你手动重新Eclipse也无济于事的,
必须"File -> Restart"重启才有效,你说搞笑不搞笑~
本文介绍了解决Eclipse中PyDev环境下安装OpenCV后无法正确提示代码及出现错误的问题。通过重启Eclipse(而非手动关闭再打开),可以有效解决此问题。
9126

被折叠的 条评论
为什么被折叠?



