简体   繁体   中英

Python OpenCV Installation - DLL error while importing cv2

I've been trying to set up OpenCV on my computer for the past 3 days and haven't able to install it.

I have tried different versions of Python and OpenCV but nothing seems to be working as I'm always getting an error: DLL error while importing cv2: The specified module could not be found.

错误图像

Can someone help me to set up python, anaconda, OpenCV on my computer as I'm now completely frustrated as I've tried almost 30 different methods but in vain.

You can download the latest OpenCV 3.2.0 for Python 3.6 on Windows 32-bit or 64-bit machine, look for file starts withopencv_python‑3.2.0‑cp36‑cp36m, from this unofficial site. Then type below command to install it:

pip install opencv_python‑3.2.0‑cp36‑cp36m‑win32.whl (32-bit version) pip install opencv_python‑3.2.0‑cp36‑cp36m‑win_amd64.whl (64-bit version) I think it would be easier.

Try running:

pip install opencv-contrib-python

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM