报错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

问题解决

请勤记笔记^_^

GitHub 加速计划 / opencv31 / opencv
77.38 K
55.71 K
下载
OpenCV: 开源计算机视觉库
最近提交(Master分支:2 个月前 )
48668119 dnn: use dispatching for Winograd optimizations 6 天前
3dace76c flann: remove unused hdf5 header 6 天前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐