【发布时间】:2016-05-01 06:54:34
【问题描述】:
我试过直接通过conda安装。
conda install opencv
但是通过这个
The following specifications were found to be in conflict:
- alabaster (target=alabaster-0.7.7-py35_0.tar.bz2) -> python 2.6*|2.7*|3.3*|3.4*|3.5*
- anaconda (target=anaconda-4.0.0-np110py35_0.tar.bz2) -> anaconda-client
...
这个错误超过一百行。
我也尝试从cmake 制作它,但我似乎无法将 Python 解释器和相关字段设置为 Anaconda 3 中的那些。
我已经参考了很多相关的帖子,但仍然没有解决我的问题。
Installing openCV in anaconda3 - Python.h: No such file or directory
How to install python opencv through Conda?
注意:conda install opencv 在 Anaconda 2 中运行良好,但我不知道为什么在 Anaconda 3 中会出现如此多的包冲突。
【问题讨论】:
-
我也遇到了同样的问题。我最终重新安装了 anacoda,在安装
opencv包之前删除了“anaconda”包。显然,要安装opencv,conda需要降级很多包。 -
是的,@sietschie,这就是我想要避免的。我确实找到了一种在同一个 Anaconda 包中并行运行 Python2 和 Python3 的方法(但在不同的环境中)。我目前正在使用 Python2 进行 OpenCV 并移植回 Python3 进行分析。我认为将整个事物放在一个环境中会好得多。似乎不太可能是吗?
标签: python macos opencv installation anaconda