I followed the instructions to install opencv in ubuntu from the link https://linuxize.com/post/how-to-install-opencv-on-ubuntu-18-04/#disqus_thread .
The module is installed properly. But when I import it in python I get the error "No module named 'cv2'" What can I do?
要使用pip
安装最新稳定版本的opencv-python 4.1.2.30
,请使用以下命令:
pip install opencv-python
如果您使用的是 Python3:
pip3 install opencv-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.