下载从cv2=opencv
安装官网https://pypi.org/project/opencv-python/
Please upgrade pip
with pip install --upgrade pip
.
pip install opencv-python (这个命令安装,只安装主模块)
pip install opencv-contrib-python (安装主模块和contrib模块)(这个是对的,去使用cv2时)
总共有四个:
conda install opencv这个不行
import cv2正确即可