Import cv2 boot package error occurred while running python on vscode

I encountered an import cv2 boot package error when I was running python on vscode. The screenshot of the error is as follows:

clipboard.png

:

clipboard.png

  • also sees a solution to many other similar problems: pip install opencv-contrib-python , but not here.

Environment:
python:3.7.1
openCV: 3.4.3-vc14_vc15

the tutorials I installed follow the this .

ps: has Microsoft Visual CPP 2015 Redistributable (x86). (this problem can also occur when you see someone in a problem due to lack of this.)

Have you wrapped the dependencies needed by

?


find out what the problem is, because the file cv2.py has been imported into the current directory. Just delete it

.
Menu