my program worked perfect until i added import cv2
import cv2
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
import numpy as np
upgraid opencv
2
it work but not uninstall opencv but numpy!! i use
pip uninstall numpy pip install numpy
Your opencv package may be installed incorrectly. Use the following command to uninstall and reinstall it.
opencv
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.
Click here to cancel reply.
2
Answers
it work but not uninstall opencv but numpy!! i use
pip uninstall numpy pip install numpy
Your
opencv
package may be installed incorrectly. Use the following command to uninstall and reinstall it.Or use the following command to update to the latest version.
You can also create a new virtual environment and reinstall the required packages.