成功解决AttributeError: module ‘numpy‘ has no attribute ‘bool‘.

这个问题是由于numpy的版本问题
1.22或者1.24都容易出现这个问题
所以我们需要将numpy换成1.23的版本
可以使用如下命令

pip install numpy==1.23.2

换成1.23.2版本后应该就可以解决这个问题了。

猜你喜欢

转载自blog.csdn.net/JingpengSun/article/details/131025604
今日推荐