本文介绍了无法在Anaconda 4.3中安装OpenCV 3.2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
尝试了以下步骤
-
conda install -c menpo opencv3=3.2.0
.. 正在获取软件包元数据....发生了意外错误 - 进行了一些互联网搜索并使用了
conda config --set ssl_verify=False
- 然后尝试做
conda update -all
和conda update pyopenssl
,但是没有运气 - 即使
remove certifi
也不起作用...给出相同的错误...实际上任何更新/安装尝试都会产生相同的结果. - 我没有设置了
PYTHONHOME
或PYTHONPATH
- 以下是我当前的conda设置和更新/安装错误的屏幕截图.平台:Windows 8.1
- 如果要在Anaconda环境中安装OpenCV 3.2,请使用其他方法
conda install -c menpo opencv3=3.2.0
.. Fetching package metadata....An unexpected error has occurred- Did some internet search and used
conda config --set ssl_verify=False
- Then tried doing
conda update -all
andconda update pyopenssl
but no luck - even
remove certifi
does not work ...gives the same error...infact any update / install attempt gives the same result. - I have NOT set my
PYTHONHOME
orPYTHONPATH
- Followin are the screen shots of my current conda settings and the update/install error. Platform : Windows 8.1
- If there is any other method to install OpenCV 3.2 in Anaconda environment please mention it
问题已解决
- 打开Anaconda终端
- 导航到包含Python脚本的Anaconda主文件夹中的文件夹
- 从此处 下载非官方的opencv + contrib二进制文件
- 在Anaconda终端中进行pip安装
- Open Anaconda terminal
- Navigate to the folder in Anaconda main folder which contains Python Scripts
- Download the un-offical opencv + contrib binaries from here
- In the Anaconda terminal do pip install
`
推荐答案
此外,您可以进入Anaconda环境并为OpenCV 3.4.4运行以下操作之一:
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
这篇关于无法在Anaconda 4.3中安装OpenCV 3.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!