python opencv运行报错

报错如下错误: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'

解决办法:

opencv-python版本太高(我的python版本为3.11),用此命令先卸载,然后再下载个低版本的:

pip uninstall opencv-python
pip install opencv-python==4.5.5.64 -i https://pypi.tuna.tsinghua.edu.cn/simple

重新安装即可解决这个问题

参考博客:opencv运行出现问题_cpp:1272: error: (-2:unspecified error) the functi-CSDN博客

相关推荐

  1. sqoop运行

    2024-06-07 01:42:04       61 阅读
  2. spark运行

    2024-06-07 01:42:04       31 阅读
  3. flutter ios 运行

    2024-06-07 01:42:04       41 阅读
  4. python opencv运行

    2024-06-07 01:42:04       33 阅读
  5. RuoYi微服务部署运行

    2024-06-07 01:42:04       67 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-06-07 01:42:04       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-06-07 01:42:04       106 阅读
  3. 在Django里面运行非项目文件

    2024-06-07 01:42:04       87 阅读
  4. Python语言-面向对象

    2024-06-07 01:42:04       96 阅读

热门阅读

  1. python pytorch之torch.flip 按轴翻转/倒叙排列 方法

    2024-06-07 01:42:04       28 阅读
  2. mysql like 查询优化

    2024-06-07 01:42:04       25 阅读
  3. c++ 函数作为参数

    2024-06-07 01:42:04       32 阅读
  4. MTK 平台增加分区流程 及 注意事项

    2024-06-07 01:42:04       26 阅读
  5. 高通Android 12/Android 13截屏

    2024-06-07 01:42:04       31 阅读
  6. vue3中函数必须有返回值么?

    2024-06-07 01:42:04       31 阅读
  7. pytorch学习day2

    2024-06-07 01:42:04       33 阅读
  8. React ahooks库和React Query库使用场景分析

    2024-06-07 01:42:04       33 阅读
  9. [力扣题解] 257. 二叉树的所有路径

    2024-06-07 01:42:04       28 阅读