1

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 Answers2

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.

Jerry_V
  • 61
  • 6
2

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