问题:import cv2 不报错,直接程序结束 原因:cv2版本太高 解决: pip uninstall opencv-python pip install opencv-python==4.1.0.25