解决配置冲突问题
UnsatisfiableError: The following specifications were found to be in conflict:
- opencv3 -> python 2.7*
- python 3.6*
Use "conda info " to see the dependencies for each package.
首先切换到 Python 3 环境
$ source activate enname(en_python3)
Fetch
$ conda install -c conda-forge opencv
OK
(en_python3) $ python
Python 3.6.3 |Anaconda, Inc.| (default, Oct6 2017, 12:04:38)
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>>
$ conda list
opencv 3.3.0 py36_blas_openblas_200[blas_openblas]conda-forge