一.环境配置
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版本:文章来源:https://www.toymoban.com/news/detail-721107.html
pip install opencv-python --upgrade
四.解决啦
文章来源地址https://www.toymoban.com/news/detail-721107.html
到了这里,关于error: (-2:Unspecified error) The function is not implemented.的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!