AttributeError: module ‘numpy‘ has no attribute ‘bool‘解决

AttributeError: module ‘numpy‘ has no attribute ‘bool‘解决

1. 降级numpy

python -m pip install numpy==1.23.1

2. 点击出错文件, 将np.bool更改为np.bool_

posted @ 2024-07-19 10:22  michaelchengjl  阅读(61)  评论(0编辑  收藏  举报