Home > Software engineering >  I'm getting an import error, does anyone know the solution? cv2
I'm getting an import error, does anyone know the solution? cv2

Time:06-15

hi I'm getting an import error, does anyone know the solution?

ImportError: Bindings generation error. Submodule name should always start with a parent module name. Parent name: cv2.cv2. Submodule name: cv2

CodePudding user response:

If you are using opencv-python version 4.6.0.66, try to downgrade to 4.5.5.64 version, you can do that by go to File->Setting->Python Interpreter-> Double-click on opencv-python version->check the specify version box, then choose older version.

Downgrade opencv also makes the auto-completion works again.

  • Related