4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

MacにcondaでOpenCVをインストールする

Last updated at Posted at 2017-10-24

macにcondaを使ってOpenCVをインストールしようとしたらエラーが出た。

$ conda install -c https://conda.anaconda.org/menpo opencv3

※-cオプションはパッケージを検索するための追加チャンネルで、URLをここで指定した順序で検索してくれるらしい。

Fetching package metadata ...........
Solving package specifications: .

UnsatisfiableError: The following specifications were found to be in conflict:
  - opencv3 -> python 2.7* -> openssl 1.0.1*
  - python 3.6*
Use "conda info <package>" to see the dependencies for each package.

なんかよくわからんけど、condaくんがインストールしたいOpenCVのパッケージがPython3.6に対応してない?
pythonのバージョンを下げて環境構築しなおして無理くり対応させるみたいな記事があったけどうーん(やりたくない)

どうもconda-forgeからパッケージをインストールすれば使えるらしいのでインストール。

$ conda config --add channels conda-forge
$ conda install opencv

OpenCV3.3.0がインストールされた!

で、conda-forgeって一体ナニって感じなのであとで調べとくこと。
https://anaconda.org/conda-forge

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?