最近发现安装了opencv后,在Eclipse的PyDev中开发时,不能提示代码的方法,而且还把error
网上查了一下有好多说重新配置一下PYTHON HOME就好了,但是我的却无论如何都不好。
比如这篇文章:http://blog.csdn.net/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"重启才有效,你说搞笑不搞笑~