Ich verwende Mac OS X 10.11 (El Capitan). Ich möchte:Installieren von OpenCV 3 für Python 3 auf einem Mac mit Homebrew und Pyenv
- mein System-Version von Python als Standard beibehalten
- Python installieren 3.5 daneben
- OpenCV installieren 3 und die Python-Bindings
Ich installierte pyenv
und Python 3.5 von folgende SO Antwort: https://stackoverflow.com/a/18671336/1410871
Ich habe meine Python 3-Installation aktiviert und OpenCV 3 mit Python 3-Unterstützung wie folgt installiert:
pyenv shell 3.5.0
brew install opencv3 --with-python3
Aber wenn ich eine IPython Shell starten und importieren cv2
, erhalte ich eine Fehlermeldung:
ImportError Traceback (most recent call last)
<ipython-input-1-72fbbcfe2587> in <module>()
----> 1 import cv2
ImportError: No module named 'cv2'
warum?
versucht, dies aber nicht für mich arbeiten. Das Importieren von cv2 gibt immer noch "ImportError: Kein Modul namens 'cv2'" zurück –