安装 open cv2
(tensorflow/tensorflow 、pytorch/pytorch 镜像测试成功)
pip install opencv-python
验证安装
python
import cv2
不行就
apt-get install python-opencv
如果报错 -bash: pip3: command not found
那就 /pip路径 install opencv-python 例如:
/opt/conda/bin/pip install opencv-python
网友评论