python numpy 错误:AttributeError: module ‘numpy‘ has no attribute ‘bool‘

问题

跑代码(pyCUDA,pyTensorRT相关)的时候numpy报错
”AttributeError: module 'numpy' has no attribute 'bool'“

解决方案

numpy1.22.x升级到1.23.1

灵感来自于下面的回答
https://stackoverflow.com/questions/74893742/how-to-solve-attributeerror-module-numpy-has-no-attribute-bool
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_29007291/article/details/128645097