Ho installato OpenCV 3.1 nel mio Mac, cv2 viene installato anche tramite pip install cv2
.Impossibile importare cv2 in python in OSX
[email protected] $ pip install cv2
You are using pip version 7.1.0, however version 7.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Requirement already satisfied (use --upgrade to upgrade): cv2 in /usr/local/lib/python2.7/site-packages
ma sembra cv2
e cv
non può essere utilizzato:
Python 2.7.10 (default, Jul 13 2015, 12:05:58)
[GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] 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
>>> import cv
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named cv
Ho provato quasi tutta la lista di soluzioni on-line, ma non posso lavorare.
Ci sono molte domande a riguardo: http://stackoverflow.com/questions/15790501/why-cv2-so-missing-after-opencv-installed and http://answers.opencv.org/question/58626/ opencv-with-python-on-a-mac/e http://stackoverflow.com/questions/3325528/how-to-install-opencv-for-python e http://stackoverflow.com/questions/19876079/opencv -cannot-find-module-cv2 – udit043