No issues importing cv2 in anaconda environment on terminal.
(TGS-salt-identification) chaumayu@HP-Pavilion:~$ pythonPython 2.7.14 |Intel Corporation| (default, Aug 3 2018, 14:28:40)
[GCC 4.8.2 20140120 (Red Hat 4.8.2-15)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Intel(R) Distribution for Python is brought to you by Intel Corporation.
Please check out: https://software.intel.com/en-us/python-distribution
>>> import cv2
>>> exit()
However when I open Jupyter notebook and execute:-
import cv2
gives following error
-----------------------------------------------------------
ImportError Traceback(most recent call last)
-----> 1 import cv2
ImportError : No module named 'cv2'
Do
sys.path.append('/home/chaumayu/anaconda2/envs/<env-name>/lib/python2.7/site-packages')
No comments:
Post a Comment