一.環(huán)境配置
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版本要一致
分別運(yùn)行以下命令:
卸載opencv-python-headless:
pip uninstall opencv-python-headless -y
更新opencv版本:文章來源:http://www.zghlxwxcb.cn/news/detail-721107.html
pip install opencv-python --upgrade
四.解決啦文章來源地址http://www.zghlxwxcb.cn/news/detail-721107.html
到了這里,關(guān)于error: (-2:Unspecified error) The function is not implemented.的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!