使用pip install opencv-python安装,默认的4.5.*版本太高,通过指定opencv-python版本问题得以解决。 pip install opencv-python==4.1.2.30