skip to Main Content

I was trying to import cvzone and cv2 library in vs code but it gives this error no matter what I do.

Tried to install this through cmd with pip and vs code (again, with pip) but nothing changes
python version 3.11.2
pip version 22.3.1

2

Answers


  1. Chosen as BEST ANSWER

    Well, it turns out making a virtual environment, installing wheel and only then installing cvzone solves this issue.


  2. Try changing you python interpreter. Since you are using vs code you can do that with ctlr + shift + p, then type >python: select interpreter
    enter image description here and change it to the one that has a global next to it.enter image description here If this doesn’t work try with all the interpreters. Hope this helps.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search