title: Installing opencv 3.4.2 with Anaconda
body: <p>I'm running Ubuntu 18.04LTS:</p>
  <p>Firstly, I couldn't install opencv from anaconda on my existing environment (base) as it kept searching for conflicts forever and then getting stuck with an empty window saying &quot;these packages will be modified&quot; while displaying absolutely nothing and with the only choice of pressing the &quot;cancel&quot; button.
  I created a new virtual environment named env_opencv and was able to install opencv:
  <a href="https://i.stack.imgur.com/2Exxr.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p>Then, I run a jupyter notebook that imports opencv:</p>
  <pre><code>import cv2
  import matplotlib.pyplot as plt
  import matplotlib.patches as patches
   ...
  </code></pre>
  <p>And here's what I get:</p>
  <pre><code>ModuleNotFoundError                       Traceback (most recent call last)
  &lt;ipython-input-8-31cd2c78c525&gt; in &lt;module&gt;
  ----&gt; 1 import cv2
        2 import matplotlib.pyplot as plt
        3 import matplotlib.patches as patches
       4 
       5 from align import AlignDlib
  
  ModuleNotFoundError: No module named 'cv2'
  </code></pre>
  <p>No matter what I tried, including reinstalling opencv directly from the conda prompt, I can't get past this error.</p>
  <p>Incidentally, I was able to make it work on Windows 10 going through the Anaconda prompt and using conda. However, my Windows machine doesn't have an nVidia GPU and I can't use it for CNN training, so I really need to make it work on Ubuntu.</p>
  <p>Any suggestions would be great. Thank you.</p>