python报错合集

 

opencv的namedWindow报错

Traceback (most recent call last):
  File "/home/test.py", line 11, in <module>
    cv2.namedWindow('res')
cv2.error: OpenCV(3.4.2) /tmp/build/80754af9/opencv-suite_1535558553474/work/modules/highgui/src/window.cpp:615: error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon 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'

解决方案

pip install opencv-contrib-python

 


 

posted @ 2021-04-08 20:08  小小灰迪  阅读(90)  评论(0编辑  收藏  举报