title: Install opencv with conda
body: <p>This question is different from "How do I install Python OpenCV through Conda?" because that question was asked more than 5 years ago, when all packages had different versions.  I tried ALL answers to that question, and neither worked.  See the text of question for details.</p>
  
  <p>How to install opencv with conda now, in July 2019?  On a freshly installed anaconda, I did <code>conda update conda</code> (succesfully) then tried the following:</p>
  
  <pre><code>(base) C:\Users\mlearning&gt;python
  Python 3.7.3 (default, Mar 27 2019, 17:13:21) [MSC v.1915 64 bit (AMD64)] :: Anaconda, Inc. on win32
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt; import cv2
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  ModuleNotFoundError: No module named 'cv2'
  &gt;&gt;&gt; import cv
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  ModuleNotFoundError: No module named 'cv'
  
  (base) C:\Users\mlearning&gt;conda install -c menpo opencv3
  Collecting package metadata (repodata.json): done
  Solving environment: (goes into infinite loop, after 10 minutes I pressed ^C)
  
  (base) C:\Users\mlearning&gt;conda install opencv
  Collecting package metadata (repodata.json): done
  Solving environment: failed
  Initial quick solve with frozen env failed.  Unfreezing env and trying again.
  Solving environment: failed
  
  UnsatisfiableError: The following specifications were found to be incompatible with each other:
  
  Package zipp conflicts for:
  importlib_metadata -&gt; zipp[version='&gt;=0.3.2']
  path.py -&gt; importlib_metadata[version='&gt;=0.5'] -&gt; zipp[version='&gt;=0.3.2']
  anaconda==2019.03=py37_0 -&gt; importlib_metadata==0.8=py37_0 -&gt; zipp[version='&gt;=0.3.2']
  zipp
  Package importlib_metadata conflicts for:
  anaconda==2019.03=py37_0 -&gt; importlib_metadata==0.8=py37_0
  path.py -&gt; importlib_metadata[version='&gt;=0.5']
  Package hdf5 conflicts for:
  anaconda==2019.03=py37_0 -&gt; h5py==2.9.0=py37h5e291fa_0 -&gt; hdf5[version='&gt;=1.10.4,&lt;1.10.5.0a0']
  hdf5
  opencv -&gt; hdf5[version='&gt;=1.10.2,&lt;1.10.3.0a0,&gt;=1.8.18,&lt;1.8.19.0a0,&gt;=1.8.20,&lt;1.9.0a0']
  h5py -&gt; hdf5[version='&gt;=1.10.1,&lt;1.10.2.0a0,&gt;=1.10.2,&lt;1.10.3.0a0,&gt;=1.10.4,&lt;1.10.5.0a0,&gt;=1.8.18,&lt;1.9.0a0']
  pytables -&gt; hdf5[version='&gt;=1.10.1,&lt;1.10.2.0a0,&gt;=1.8.18,&lt;1.8.19.0a0,&gt;=1.8.18,&lt;1.9.0a0']
  Package mkl-service conflicts for:
  mkl-service
  anaconda==2019.03=py37_0 -&gt; mkl-service==1.1.2=py37hb782905_5
  
  (base) C:\Users\mlearning&gt;conda install -c conda-forge opencv
  Collecting package metadata (repodata.json): done
  Solving environment: failed
  Initial quick solve with frozen env failed.  Unfreezing env and trying again.
  Solving environment: failed
  
  UnsatisfiableError: The following specifications were found to be incompatible with each other:
  
  Package hdf5 conflicts for:
  anaconda==2019.03=py37_0 -&gt; hdf5==1.10.4=h7ebc959_0
  h5py -&gt; hdf5[version='1.10.1,1.8.17|1.8.17.*,1.8.18|1.8.18.*,&gt;=1.10.2,&lt;1.10.3.0a0,&gt;=1.10.3,&lt;1.10.4.0a0,&gt;=1.8.20,&lt;1.9.0a0']
  pytables -&gt; hdf5[version='1.8.18|1.8.18.*,&gt;=1.10.4,&lt;1.10.5.0a0,&gt;=1.8.18,&lt;1.8.19.0a0,&gt;=1.8.18,&lt;1.9.0a0']
  hdf5
  Package mkl-service conflicts for:
  mkl-service
  Package importlib_metadata conflicts for:
  importlib_metadata
  path.py -&gt; importlib_metadata[version='&gt;=0.5']
  </code></pre>