Ask Your Question

Revision history [back]

Well, I found a work-around. While this doesn't answer the specific question I had about getting the packages compiled from source, it did get me a working install of opencv and the contrib packages.

Following instructions from here, I downloaded the appropriate (for the python version I'm running) precompiled whl file from Christoph Gohlke's page. I put this file in my python scripts directory (not sure this is necessary), navigated there in a terminal and entered the command "pip install fileName.whl".

That's it! Hats off to Christoph.

Final note: While, in principle, entering the command "pip install opencv" should install opencv without having to manually download anything, I was having problems with unavailable packages with this type of install. Some of the packages are either proprietary or are still in beta and thus, are not available through the standard install method. This is why I was trying to compile from source to begin with. The precompiled whls from Christoph's page get around having to compile yourself but also include the missing packages, at least the one I downloaded did.

I hope this is helpful to some others as well.

Well, I found a work-around. While this doesn't answer the specific question I had about getting the packages compiled from source, it did get me a working install of opencv and the contrib packages.

Following instructions from here, I downloaded the appropriate (for the python version I'm running) precompiled whl file from Christoph Gohlke's page. I put this file in my python scripts directory (not sure this is necessary), navigated there in a terminal and entered the command "pip install fileName.whl".

That's it! Hats off to Christoph.

Final note: While, in principle, entering the command "pip install opencv" should install opencv without having to manually download or compile anything, I was having problems with unavailable packages with this type of install. Some of the packages are either proprietary or are still in beta and thus, are not available through the standard install method. This is why I was trying to compile from source to begin with. The precompiled whls from Christoph's page get around having to compile yourself but also include the missing packages, at least the one I downloaded did.

I hope this is helpful to some others as well.

Well, I found a work-around. While this doesn't answer the specific question I had about getting the packages compiled from source, it did get me a working install of opencv and the contrib packages.

Note: This is for windows only!

Following instructions from here, I downloaded the appropriate (for the python version I'm running) precompiled whl file from Christoph Gohlke's page. I put this file in my python scripts directory (not sure this is necessary), navigated there in a terminal on the command line and entered the command "pip install fileName.whl".

That's it! Hats off to Christoph.

Final note: While, in principle, entering the command "pip install opencv" should install opencv without having to manually download or compile anything, I was having problems with unavailable packages with this type of install. Some of the packages are either proprietary or are still in beta and thus, are not available through the standard install method. This is why I was trying to compile from source to begin with. The precompiled whls from Christoph's page get around having to compile yourself but also include the missing packages, at least the one I downloaded did.

I hope this is helpful to some others as well.