cv2.error: OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv\modules\highgui\src\window.cpp:1251

Traceback (most recent call last):
  File "D:/pycharm/project/PicturetoWords/006.py", line 152, in openimage
    cv2.namedWindow('yuantu', cv2.WINDOW_NORMAL)  # 后缀cv2.WINDOW_NORMAL可以设置显示的窗口任意缩放
cv2.error: OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv\modules\highgui\src\window.cpp:1251: 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 'cvNamedWindow'

Process finished with exit code -1073740791 (0xC0000409)
 

CSDN的各位大佬们,有知道这个是什么引起的吗。

你可能感兴趣的:(python)