Building OpenCV 3.0.0-beta Windows Python 3.4

无人久伴 提交于 2019-12-04 19:18:50

I share precisely your frustrations. Ridiculous of a major package to demand that its users jump through so many hoops, building it from source, simply to use it as an import cv2 in Python. My other packages I just install in one line from pip!

The ticket on the OpenCV bug tracker documenting progress on having a compiled Python 3.4 cv2.pyd file included in the OpenCV 3.0 download on the OpenCV site. As of 6 June 2015 it's not there yet.

However, the great news is, Christoph Gohlke maintains Windows binaries for many Python packages, including OpenCV 3.0 with Python 3.x bindings! See here:

http://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv

To install, just download the 64-bit or 32-bit .whl file appropriate for your system, then run pip install [filename]. Then the instruction import cv2 should work in your Python 3.x interpreter.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!