简体   繁体   中英

Why ImportError: No module named 'cv2' error come only for python3?

for python2, open cv library successfully added. But while i choose python3 i can't. Default version is python3.5. Here i have attached the screenshot.

ImportError: No module named 'cv2'

在此处输入图像描述

This seems to be installation problem. The python interpreter should the path of all libraries that are available for use. By default, the directory containing the python interpreter should be containing all the libraries that are compatible with that version. You should try this command which python3 to know the python3 installation path and see if the cv2 library installed there or not. You need to refer the how python interpreter finds the third part libraries.

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