Table of contents
When installing opencv-python, the error is reported as follows:
Requirement already satisfied: opencv-python in d:\anaconda\lib\site-packages (4.5.5.64)
Requirement already satisfied: numpy>=1.13.3 in d:\anaconda\lib\site-packages (from opencv-python) (1.14.3)
cv2 marked red
So try to install with pip install opencv-python
opencv-python already exists, but still marked red
It turns out that it is not installed in the programming environment, the solution is as follows:
1. Find the directory where the opencv installation is located
2. Copy the cv2 file
3. Find the environment where the project is located
4. Copy the cv2 file to the Lib folder where the environment is located