[英]How can i import cv2 on python 3.8
I am tryin to do a project that requires cv2 module.我正在尝试做一个需要 cv2 模块的项目。 I downloaded the library through windows command prompt.我通过 Windows 命令提示符下载了该库。 pip install cv2module
it installed successfully. pip install cv2module
安装成功。 but, when i try to import it on pycharm or python IDLE it throws an error like ImportError: DLL load failed while importing cv2: The specified module could not be found.
但是,当我尝试在 pycharm 或 python IDLE 上导入它时,它会引发类似ImportError: DLL load failed while importing cv2: The specified module could not be found.
安装 contrib 版本 opencv
pip install opencv-contrib-python
I was facing missing DLL issue.我正面临着缺少 DLL 的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.