我的机器上安装了ubuntu14.04(64位)。在
我已经安装了python3.6和opencv3。当我试图运行以下代码行时,它抛出错误。在
key = cv2.waitKey(0)
误差如下:
error: /feedstock_root/build_artefacts/opencv_1489510052062/work/opencv-3.1.0/modules/highgui/src/window.cpp:616: error: (-2) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function cvWaitKey
我已经安装了libgtk2.0-dev包,但它没有得到解决。 我需要安装其他软件包吗?在
您缺少一些OpenCV依赖的库,在Linux上安装OpenCV非常容易,只需使用install shell脚本并执行它。它将安装所有依赖项并正确安装OpenCV,下面是我过去使用过的
.sh
:{a1}
相关问题 更多 >
编程相关推荐