Can't open image by cv2.imshow when use enviroment anaconda

Hi everyone!
I have problem with open image by cv2.imshow in enviroment anaconda. this is:
File “C:\Users\quang\OneDrive\Desktop\main test\setting_co_dinh.py”, line 485, in cut_img
cv2.imshow(“anhne”,image_circle)
cv2.error: OpenCV(4.6.0) C:\b\abs_f8n1j3l9l0\croot\opencv-suite_1691622637237\work\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’.
Please help me.
Thanks!

believe the error msg.
what you installed, has no gui.

rather prefer to use

pip install opencv-python

than anything unmaintained from conda

1 Like