LoginSignup
0
0

More than 5 years have passed since last update.

When the Eclipse mentions "Unresolved import cv2"

Last updated at Posted at 2017-06-04

 Memo

As i have done in previous post, the opencv 3.2 works very well, but one thing bothers me, the eclipse is keeping mention "Unresolved import:: cv2", even the cv2 works well.

At first, i thought the Eclipse PyDev configuration causes this problem, so i googled a little bit and there was no obvious solution.
So i followed into the python3.6 side-package folder (which looks like this C:\Users\%Username%\AppData\Local\conda\conda\envs\python36\Lib\site-packages), then i confirmed the cv2 binary file is right there, but i noticed it is named as cv2.cp36-win_amd64.pyd, so i tried rename it as cv2.pyd with a copy of cv2.cp36-win_amd64.pyd(because i am not sure if cv2.cp36-win_amd64.pydis the default name for library link), and it did solve the problem, after that i tried to delete the original cv2.cp36-win_amd64.pyd file, it still works, happy ending.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0