skip to Main Content

my program worked perfect until i added
import cv2

enter image description here
without adding any instruction i get this errors

before i add import cv2 i added import numpy as np without error i tried to upgraid opencv , numpy i get message that are updateed

2

Answers


  1. Chosen as BEST ANSWER

    it work but not uninstall opencv but numpy!! i use

    pip uninstall numpy pip install numpy


  2. Your opencv package may be installed incorrectly. Use the following command to uninstall and reinstall it.

    pip uninstall opencv-python
    pip install opencv-python
    

    Or use the following command to update to the latest version.

    pip install --upgrade opencv-python 
    

    You can also create a new virtual environment and reinstall the required packages.

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