Install OpenCv with Conda

 conda install --channel loopbio --channel conda-forge --channel pkgw-forge gtk2 ffmpeg ffmpeg-feature gtk2-feature opencv




http://www.menpo.org/installation/playground.html

    install the packages : libgtk2.0-dev and pkg-config
    cd to your opencv directory
    mkdir Release
    cd Release
    Run the command : cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_GTK=ON -D WITH_OPENGL=ON ..
    make
    sudo make install


Install OpenCV in a Dockerfile

FROM ubuntu:16.04 RUN conda install -c menpo menpoproject RUN source activate menpo RUN conda update -c menpo menpoproject