BLUE99102
2021-07-28 09:20
采纳率: 100%
浏览 541
已结题

python3.9opencv4.5.3人脸识别运行错误

cv2.error: OpenCV(4.5.3) C:\Users\runneradmin\AppData\Local\Temp\pip-req-build-au50kd6q\opencv\modules\highgui\src\window.cpp:1274: 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'
这咋办呀

  • 收藏

1条回答 默认 最新

  • 滑一下很开心 2021-07-28 09:30
    已采纳

    opencv安装版本不对。重新安装

    pip3 uninstall opencv-python
    
    pip3 install opencv-python
    
    
    已采纳该答案
    2 打赏 评论

相关推荐 更多相似问题