Opencv-python has been installed successfully and yet I am unable to import cv2

opencv-python has been installed successfully and yet I am unable to import cv2

ImportError: OpenCV loader: missing configuration file: ['config.py']. Check OpenCV installation.

**PS: my code works locally but generates an error in replit. The line that is producing the error is "import cv2"**

Welcome to the community @DEVELOPER710 !

Can you please provide the link to your repl and give us a more detailed explanation about what are you trying to do?

It seems that you need to have a file called config.py, where you will put the OpenCV configuration.

3 Likes

Thanks for all the replies, but I don’t need to do it anymore.