第一步:用win+R打开cmd
升级pip版本 命令:python -m pip install --upgrade pip
后输入pip install cv2
无法解决问题,出现ERROR
ERROR: Could not find a version that satisfies the requirement cv2 (from versions: none)
ERROR: No matching distribution found for cv2
第二步:后输入pip install opencv-contrib-python
出现了与本机Python编译器一样的版本,成功!