BUG:
cv2.error: OpenCV(4.6.0) /io/opencv/modules/highgui/src/window.cpp:1267: 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 ‘cvShowImage’
参考文章:https://blog.csdn.net/z704630835/article/details/124564044
解决方法:
1.删除原来的opencv包:pip uninstall opencv-python
2.重新安装opencv:conda install py-opencv
个人试着用pip、清华源的安装,都安装不上。直接用conda安装就可以了。