I'm using anaconda and installed OpenCV using conda-forge.
conda install -c conda-forge opencv
In my notebook I run this line of code
from cv2 import cv2
Unfortunately, get this error message:
ImportError: cannot import name 'cv2' from 'cv2' (C:\Users\...\Anaconda3\envs\...\lib\site-packages\cv2.cp38-win_amd64.pyd)
The weird thing is importing cv2 and running its functions works just fine.
# Works just fine
import cv2
img = cv2.imread('snek.jpg')
Here are some informations about my system if that helps?
conda version : 4.9.2
conda-build version : 3.20.5
python version : 3.8.5.final.0
platform : win-64