Ask Your Question

Revision history [back]

When I try to call python script in java by jython, the following error occured, just like what happened to you. Have you worked it out?

Exception in thread "main" Traceback (most recent call last): File "D:\WorkSpace\PyCharmProjects\python_opencv\readImg.py", line 3, in <module> import cv2 File "D:\Installation\Anaconda3\Lib\site-packages\cv2__init__.py", line 7, in <module> from . import cv2 ImportError: cannot import name cv2