error: (-2:Unspecified error) The function is not implemented.
•
Python
一.环境配置
windows10+pycharm+python3.9
二、问题描述
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.pip安装opencv-contrib-python,注意opencv-contrib-python版本和opencv版本要一致
分别运行以下命令:
卸载opencv-python-headless:
pip uninstall opencv-python-headless -y
更新opencv版本:
pip install opencv-python --upgrade
四.解决啦

本文来自网络,不代表协通编程立场,如若转载,请注明出处:https://net2asp.com/c7fc6889f8.html
