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

问题原因:在numpy的1.24版本已经弃用了np.bool这个名称,取而代之的是np.bool_

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

解决方法:

1.点击出错文件

2.将np.bool更改为np.bool_

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

本文来自网络,不代表协通编程立场,如若转载,请注明出处:https://net2asp.com/62e20edc3e.html