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

michaelchengjl / 2024-07-19 / 原文

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

1. 降级numpy

python -m pip install numpy==1.23.1

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