gpt4 book ai didi

python - Eclipse中Python的OpenCV 2.3的配置

转载 作者:太空狗 更新时间:2023-10-30 00:51:30 25 4
gpt4 key购买 nike

您好,我刚开始使用 python 和 OpenCV,我的 IDE 是 eclipse。

现在我已经安装了 NumPy 和 SciPy 以及 OpenCV 2.3 和 Python 2.7

我想我配置了所有路径和解释器选项(可能没有),

问题来了:

this is the screen shot of my IDE, all the cv-related are marked wrong in the editor but actually when I run it, it turns out to be fine

所以我的问题是如何让它像在 Java 等其他语言中一样正常工作?

谢谢

最佳答案

在 Eclipse 中转到

Window->Preferences->PyDev->Interpreters->Python Interpreter=> [Forced Builtins](选项卡)

添加 cv(或 cv2)并申请 - 一切都会好起来的。

关于python - Eclipse中Python的OpenCV 2.3的配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11829943/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com