报错1:importError :numpy.core.multiarrary failed to import
知道问题是numpy和opencv-python版本不匹配,将两个升级到最高,出现报错2
报错2:`np.sctypes` was removed in the NumPy 2.0 release. Access dtypes explicitly instead.. Did you mean: 'dtypes'?
安装numpy
pip install -U numpy<2.0.0
再安装opencv-python
pip install -U opencv-python<=4.6.0.66
问题解决
请勤记笔记^_^