python-2.7 - 为什么 cv2.waitkey 函数在 ubuntu 上使用 conda 会导致错误

标签 python-2.7 opencv ubuntu anaconda

在我添加之前,我一直在成功地将 cv2 与 anaconda 一起使用:

cv2.waitKey(0)

收到此错误:

cv2.error: -------src-dir-------/opencv-2.4.10/modules/highgui/src/window.cpp:562: 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

我在 Ubuntu 14.04.2 LTS 上使用 conda 3.14.0 和错误中的包 建议安装

最佳答案

此链接可能对您有所帮助。 https://groups.google.com/a/continuum.io/forum/m/#!msg/anaconda/uHB2wYT29vU/80ywinE9BAAJ .

综上所述,您可以尝试:

对于 opencv2.X

conda install -c https://conda.anaconda.org/menpo opencv

关于python-2.7 - 为什么 cv2.waitkey 函数在 ubuntu 上使用 conda 会导致错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31699935/

相关文章:

python - Python中如何在连续大写字母的首字母前添加空格?

Python 初学者 : outputting function-generated text to file

python-2.7 - 使用具有多个输入的网络进行 Hyperas 网格搜索

python - 在 OpenCV 3.0 中如何在元素操作之后使用像 equalizeHist 这样的函数(python 和 C++)

opencv - icp变换矩阵解释

linux - Ubuntu 12.0.04 中的单节点 Hadoop 设置

python - 无法使用 Crontab @reboot 运行第二个 py 脚本 - Ubuntu 20.04

python - 多个 python 版本和解释器

python - 我们如何在 Open CV 中创建一个轨迹栏,以便我可以使用它跳到视频的特定部分?

Java2D : BufferedImage not accelerated on Ubuntu