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.