If you have already installed opencv, then it is possible that your laptop and your opencv library are in 2 different python environments. The following has helped me in the past:
- Open laptop
- In the new cell type:
!pip install opencv-python
Please note that something ! intentionally. This will install open-cv in your current laptop environment.
source share