0
2

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でOpenCV3を稼働させたければPythonは3.6ではなく3.5で!

Posted at

MacのOSX 10.12.6で、Python 3.6.2をインストールしました。
で、諸情報に基づきAnacondaをインストール。続いてOpenCV 3をインストール。
OpenCV自体のインストールは確認できたのですが、「>>> import cv2が作動しない・・・」という状況に。。。

そこで色々調べたら、こちらの2つの情報からOpenCV3はまだPython3.6に対応していないのかもと思い、OpenCV稼働用の仮想環境を作り、Python3.5をインストールしてからOpenCV3を再インストール。すると無事、「>>> import cv2」でエラー表示なく次の「>>>」が出ました!

助かりました!

参考:
http://qiita.com/Gen6/items/226dac6abfa0d43c88ba
http://koruku.hatenablog.com/entry/2017/02/02/203057

0
2
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
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?