So first of all I'm on windows10, I'm working in tf-gpu environment not base. This may be long but no article/post/question helped me. I was trying to test an object detection module and now the step for the live video. I had an error:
error: OpenCV(4.5.4-dev) D:\a\opencv-python\opencv-python\opencv\modules\highgui\src\window.cpp:1268:
error: (-2:Unspecified error) The function is not implemented.
Rebuild the library with Windows, GTK+ 2.x or Cocoa support.
If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function 'cvDestroyAllWindows'
same goes for cv2.imshow. After uninstalling using pip, using conda etc.. I went to anaconda navigator to check the packages, they are still there 2 packages installed via pip channel pypi in cmd, so I removed the opencv and opencv contrib and voila, no package.
pip uninstall opencv-python, pip uninstall opencv-contrib-python
So I go to my notebook, apparently I still can import cv2 even though I'm sure I removed it
import cv2
cv2.__version__
'4.5.4-dev'
And I still have the same error above.
edit: I tried this command as well:
pip3 install opencv-python --upgrade --force-reinstall
``
still the same error as above