pythonvisual-studio-codecvzone

Cannot import cvzone in VSCode though correctly installed


I am trying to work with cvzone library in Python using VSCode. I have installed the library using pip install cvzone. But when trying to import the library, ModuleNotFoundError is being raised.

import cvzone

Output

ModuleNotFoundError: No module named 'cvzone'

I tried to run the same in Colab and it was successfully imported. But when trying to run in Jupyter Notebook in VSCode, it is not working.


Solution

  • I deleted the virtualenv, created a new one (with another name. First, I created one with the same name, but it showed the same issue), and reinstalled all the packages. Then it worked! I don't know what was wrong, but anyway... Thank you all for answering.