Also folgte ich this tutorial und habe diesen Fehler:Installation opencv3 für python3 in OSX
brew link --overwrite eigen
brew install opencv3 --with-python3 --with-contrib
dies in ~/.profile
schrieb und sourced es:
export PYTHONPATH=$PYTHONPATH:/usr/local/Cellar/opencv3/3.0.0/lib/python3.4/site-packages
source ~/.profile
python3
Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 00:54:21)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] 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: No module named 'cv2'
Kann jemand bitte leite mich, was falsch ist und wie etwas reparieren?
UPDATE:
Ich habe versucht, dies zu:
Monas-MacBook-Pro:build mona$ brew ln --force opencv3
Linking /usr/local/Cellar/opencv3/3.1.0_3...
Error: Could not symlink bin/opencv_annotation
Target /usr/local/bin/opencv_annotation
is a symlink belonging to opencv. You can unlink it:
brew unlink opencv
To force the link and overwrite all conflicting files:
brew link --overwrite opencv3
To list all files that would be deleted:
brew link --overwrite --dry-run opencv3
Monas-MacBook-Pro:build mona$ brew link --overwrite opencv3
Warning: opencv3 is keg-only and must be linked with --force
Note that doing so can interfere with building software.
Monas-MacBook-Pro:build mona$ brew link --force --overwrite opencv3
Linking /usr/local/Cellar/opencv3/3.1.0_3... 551 symlinks created
Vielleicht versuchen 'cp /usr/local/Cellar/opencv3/3.0.0/lib/python3.4/site-packages/*/usr/local/lib/python3.4/site-packages /' .. –
'cp: /usr/local/Cellar/opencv3/3.0.0/lib/python3.4/site-packages/*: Keine solche Datei oder Verzeichnis' –