Unable to install OpenCV 3.2 in Anaconda 4.3

2019-09-15 00:36发布

问题:

Tried the following steps

  1. conda install -c menpo opencv3=3.2.0 .. Fetching package metadata....An unexpected error has occurred
  2. Did some internet search and used conda config --set ssl_verify=False
  3. Then tried doing conda update -all and conda update pyopenssl but no luck
  4. even remove certifidoes not work ...gives the same error...infact any update / install attempt gives the same result.
  5. I have NOT set my PYTHONHOME or PYTHONPATH
  6. Followin are the screen shots of my current conda settings and the update/install error. Platform : Windows 8.1
  7. If there is any other method to install OpenCV 3.2 in Anaconda environment please mention it

EDIT : PROBLEM SOLVED

  1. Open Anaconda terminal
  2. Navigate to the folder in Anaconda main folder which contains Python Scripts
  3. Download the un-offical opencv + contrib binaries from here
  4. In the Anaconda terminal do pip install

`

回答1:

The menpo file page shows only OpenCV 3.2.0 for Python 2.7/3.4/3.5 on linux-64 platform is available.

You can try this OpenCV 3.2.0 binary in github if your Windows is 64-bit and with Python 2.7.

See this https://stackoverflow.com/questions/42310099 for more informtion.



回答2:

Also, you can go into your Anaconda environment and run one of the following for OpenCV 3.4.4:

conda install -c conda-forge opencv 
conda install -c conda-forge/label/gcc7 opencv 
conda install -c conda-forge/label/broken opencv 
conda install -c conda-forge/label/cf201901 opencv


回答3:

For anaconda running python 3.7, you can use

conda install py-opencv=3.4.2