osx - Python Import cv2 error in jupyter works on mac terminal -


i having difficulty importing cv2 on jupyter notebook. however, when enter:

import cv2  

in mac terminal there no error.

i referenced post 1 identify jupyter notebook refers python3.5 file path mac terminal import works fine refers python 2.7 file path.

i entered below in jupyter notebook referenced in post 2 solve issue, i'm still getting error:

import sys sys.path.append('/usr/local/lib/python2.7/site-packages') import cv2 

enter image description here

any appreciated!

i don't think can use module python 2.7 in python 3.5, you'll either have install cv2 in python3 environment or jupyter use python2


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -