报错如下
importError: ERROR: recursion is detected during loading of “cv2” binary extensions. Check OpenCV installation.
使用版本 linux 需要使用无头版本 4.7.0.72
- python 3.8
- opencv-python==4.7.0.72;sys_platform!="linux"
- opencv-python-headless4.7.0.72;sys_platform"linux"
降低版本 4.5.3.56
pip install opencv-python=4.5.3.56