aitrepreneur / INSTID

34 stars 17 forks source link

ModuleNotFoundError: No module named 'cv2' #7

Open edrisofficial opened 9 months ago

edrisofficial commented 9 months ago

Hi, so I did install it twice and did everything, but when I write python app.py it gives me this error, I had python 3.10.6 and tried it with that and the second time I upgraded my python to 3.10.11 and still didn't work.

error edris

If you could please tell me what could be the problem. thank you

aitrepreneur commented 9 months ago

first type env\Scripts\activate

then

python app.py --inbrowser add any arguments you want after --inbrowser

edrisofficial commented 9 months ago

first thank you for the reply,

I have tried what you said and still getting the same 'cv2' error. it's in the second line of app.py where it says 'import cv2'.

error edris 2

Should I add anything after --inbrowser to prevent this error? I've also reinstalled Python & Git but still no luck!

edrisofficial commented 9 months ago

ok I found the solution to this problem. https://youtu.be/HELigAZ-HUg

here's a video that says the solution. basically type 'pip install opencv-python' in the console and press enter.