一、容易出错事项
第一种安装方法:pip install opencv-contrib-python==4.2.0.32 -i https://pypi.tuna.tsinghua.edu.cn/simple/
第二安装方法:pip install opencv-python
正确的安装方法:pip install opencv-python==4.3.0.38
验证是否安装成功:
python
import cv2
一、容易出错事项
第一种安装方法:pip install opencv-contrib-python==4.2.0.32 -i https://pypi.tuna.tsinghua.edu.cn/simple/
第二安装方法:pip install opencv-python
正确的安装方法:pip install opencv-python==4.3.0.38
验证是否安装成功:
python
import cv2