OpenCV and Anaconda Python
<p>How can you import <code>OpenCV</code> to run in <code>Python</code>?</p>

<p>I ran it on a windows platform. My main problem i ran into was using Python 3.5 (presuming it was the latest) and the latest version of OpenCV but i didn't know that OpenCV sis not compatible with Python 3.5 so online video tutorials on youtube all failed miserably and i couldnt get past the import stage for almost a full day. </p>

<p>Here's what I have tried:</p>

<ol>
<li><p>Python 3.5 (64bit) &amp; (32bit) with OpenCV</p></li>
<li><p>Anaconda 3 (64bit) &amp; (32bit) with OpenCV</p></li>
</ol>

<p>Using <code>Anaconda Python 2.7 (64bit)</code> with <code>OpenCV</code> ended up working. Turns out <code>OpenCV</code> that I downloaded from the site is for <code>Python 2.7</code>.</p>

<pre><code>conda install -c menpo opencv3=3.1.0
</code></pre>

<p>or </p>

<pre><code>conda install -c anaconda opencv=2.4.10
</code></pre>

<p>It's a bit annoying that you need to know which collection a package is in if it isn't the standard one, but a certain search engine will find it.</p>

python opencv anaconda