As I wrote in here, I'm glad I was able to install openCV3, but I couldn't ʻimport cv2` if I put the symbolic link honestly. So I'll leave a note of the solution.
ln -s /usr/local/Cellar/opencv3/3.2.0/lib/python3.6/site-packages/cv2.cpython-36m-darwin.so ~/.pyenv/versions/3.5.3/lib/python3.5/site-packages
After doing this, ʻimport cv2` ...
> ipython
In [1]: import cv2
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-72fbbcfe2587> in <module>()
----> 1 import cv2
ImportError: No module named 'cv2'
It will be like this.
ln -s /usr/local/Cellar/opencv3/3.2.0/lib/python3.6/site-packages/cv2.cpython-36m-darwin.so ~/.pyenv/versions/3.5.3/lib/python3.5/site-packages/cv2.so
I solved it by changing the name of the link to cv2.so
.
Recommended Posts