简体   繁体   English

找不到python-openCV模块错误

[英]python-openCV module not found error

I am getting this error 我收到此错误

-"module 'cv2' has no attribute 'version' -“模块'cv2'没有属性'version'

when I try to find version of cv2, but my import is executing fine without any error. 当我尝试查找cv2版本时,但我的导入执行正常,没有任何错误。
I am confused about whether my openCV is working correctly or not? 我对我的openCV是否正常工作感到困惑?

Your openCV is probably installed in another python version and pylint is having problem identifying. 您的openCV可能已安装在另一个python版本中,而pylint却无法识别。 Try to locate where your openCV is installed and manually change it. 尝试找到您的openCV的安装位置,然后手动进行更改。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM