OpenCV for Anaconda Python for OS X을 설치하는 방법은 무엇입니까? 나는 윈도우 7 엔터프라이즈에서 같은 명령을 사용하고는UnsatisfiableError : 다음 사양이 충돌하는 것으로 나타났습니다. - opencv3 -> python 2.7 * - python 3.6 *
근무Monas-MacBook-Pro:machine_learning mona$ conda install --channel https://conda.anaconda.org/menpo opencv3
Fetching package metadata .............
Solving package specifications: .
UnsatisfiableError: The following specifications were found to be in conflict:
- opencv3 -> python 2.7*
- python 3.6*
Use "conda info <package>" to see the dependencies for each package.
Monas-MacBook-Pro:machine_learning mona$ conda install opencv3
Fetching package metadata ...........
PackageNotFoundError: Packages missing in current channels:
- opencv3
We have searched for the packages in the following channels:
- https://repo.continuum.io/pkgs/main/osx-64
- https://repo.continuum.io/pkgs/main/noarch
- https://repo.continuum.io/pkgs/free/osx-64
- https://repo.continuum.io/pkgs/free/noarch
- https://repo.continuum.io/pkgs/r/osx-64
- https://repo.continuum.io/pkgs/r/noarch
- https://repo.continuum.io/pkgs/pro/osx-64
- https://repo.continuum.io/pkgs/pro/noarch
Monas-MacBook-Pro:machine_learning mona$ conda install -c menpo opencv3
Fetching package metadata .............
Solving package specifications: .
UnsatisfiableError: The following specifications were found to be in conflict:
- opencv3 -> python 2.7*
- python 3.6*
Use "conda info <package>" to see the dependencies for each package.
업데이트 : 난 CONDA 단조를 사용하여 설치를 시도하지만 이것은에서 this question의 정확한 중복이 오류
Monas-MacBook-Pro:machine_learning mona$ conda install -c conda-forge opencv
Fetching package metadata .............
Solving package specifications: ^[[A^[[B.
Package plan for installation in environment /Users/mona/anaconda:
The following NEW packages will be INSTALLED:
blas: 1.1-openblas conda-forge
bzip2: 1.0.6-1 conda-forge
ffmpeg: 3.2.4-1 conda-forge
x264: 20131217-3 conda-forge
The following packages will be UPDATED:
h5py: 2.7.0-np112py36_0 --> 2.7.1-py36_1 conda-forge
hdf5: 1.8.17-1 --> 1.8.18-1 conda-forge
numpy: 1.12.1-py36_0 --> 1.12.1-py36_blas_openblas_200 conda-forge [blas_openblas]
opencv: 3.2.0-np112py36_0 conda-forge --> 3.3.0-py36_blas_openblas_200 conda-forge [blas_openblas]
pytables: 3.3.0-np112py36_0 --> 3.4.2-np112py36_1 conda-forge
scikit-learn: 0.19.0-np112py36_0 --> 0.19.0-py36_blas_openblas_201 conda-forge [blas_openblas]
scipy: 0.19.1-np112py36_0 --> 0.19.1-py36_blas_openblas_202 conda-forge [blas_openblas]
The following packages will be SUPERSEDED by a higher-priority channel:
conda: 4.3.27-py36hb556a21_0 --> 4.3.24-py36_0 conda-forge
conda-env: 2.6.0-0 --> 2.6.0-0 conda-forge
Proceed ([y]/n)? y
Invalid choice: y
Proceed ([y]/n)? y
bzip2-1.0.6-1. 100% |#####################################################| Time: 0:00:00 395.79 kB/s
conda-env-2.6. 100% |#####################################################| Time: 0:00:00 993.59 kB/s
x264-20131217- 100% |#####################################################| Time: 0:00:02 1.19 MB/s
ffmpeg-3.2.4-1 100% |#####################################################| Time: 0:00:25 1.60 MB/s
hdf5-1.8.18-1. 100% |#####################################################| Time: 0:00:03 1.31 MB/s
blas-1.1-openb 100% |#####################################################| Time: 0:00:00 816.40 kB/s
numpy-1.12.1-p 100% |#####################################################| Time: 0:00:02 1.52 MB/s
h5py-2.7.1-py3 100% |#####################################################| Time: 0:00:00 1.78 MB/s
scipy-0.19.1-p 100% |#####################################################| Time: 0:00:10 1.55 MB/s
pytables-3.4.2 100% |#####################################################| Time: 0:00:02 1.19 MB/s
scikit-learn-0 100% |#####################################################| Time: 0:00:04 1.32 MB/s
conda-4.3.24-p 100% |#####################################################| Time: 0:00:00 1.59 MB/s
opencv-3.3.0-p 100% |#####################################################| Time: 0:00:22 1.64 MB/s
Monas-MacBook-Pro:machine_learning mona$ python
Python 3.6.2 |Anaconda custom (x86_64)| (default, Jul 20 2017, 13:14:59)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: dlopen(/Users/mona/anaconda/lib/python3.6/site-packages/cv2.cpython-36m-darwin.so, 2): Library not loaded: @rpath/libopenblasp-r0.2.19.dylib
Referenced from: /Users/mona/anaconda/lib/libopencv_core.3.3.dylib
Reason: image not found
>>>
(1) 첫 번째 오류는 아나콘다의 특성과 관련이 있습니다. 사전 패키지 된 바이너리가 있지만 모든 종류의 버전에는 해당되지 않습니다. 귀하의 경우에는 python 3.6을위한 opencv3 빌드가없는 것 같습니다 (그러나 파이썬 2.7 용). 2.7로 전환하면 작동합니다. 아니면 오래된 opencv2 어쩌면 (2)를 사용하여 나는 2 번 오류에 대한 아이디어가 없지만 깨끗한 환경에서 다시 시도 할 것입니다. (3) 여기에 OSX 사용자가 아니지만 소스에서 opencv를 설치하는 것이 Windows와는 달리 어렵지는 않습니다. – sascha
@sascha는 맞지만 2.7로 다시 전환 할 필요가 없습니다. 최신 menpo 설치 프로그램은 Python 3.5 용입니다. 당신은'python = 3.5' 플래그로 설치할 수 있습니다. –
이것은 [opencv3를 anaconda python 3.6 (Mac)에서 설치하는 데 문제가 있습니다]와 중복되었습니다. (https://stackoverflow.com/questions/46415210/trouble-installing-opencv3-with-anaconda-python-3-6-on- 맥). 나는 다른 주에 대답했다. Dupes는 거의 여기에서 닫히지 않으므로 나는 대답을 게시 할 것입니다. –